Akka typed schedulers does not have initial timeout


(Saloni Vithalani) #1

The new api of TimerScheduler does not support intial delay compared to untyped version. For our use case a zero initial delay would fit very well. So, would like to know the reason for not having it in akka typed.

(Patrik Nordwall) #2

For zero initial delay you can send the first message to self and the use the periodic timer.

For different initial delay you can combine a single timer with a periodic timer.

That was the thinking around trying to reduce the api surface, and the most common is to have same initial delay as the interval.