System Timer support async*

function Timer.recurringTimer(time, job) where job supported type () → async ()
It is possible to add support for ‘‘unexpected asynchrony’’ in future versions of the SDK and Moc
for Timer.recurringTimer(time, job)?

Something like this:
Timer.recurringTimer2(time, job) where job type () → async* ()

Yes, eventually the timer jobs will have async* type. This will be a breaking change, but will bring a few benefits (e.g. lower lag and jitter). This is an item on Timer-related cleanups · Issue #3663 · dfinity/motoko · GitHub, but currently rather low priority.

1 Like