Reactor.registerRecurringTimer

registers a timer that will repeatedly trigger at set intervals.

You do not control precisely when the callback is invoked, only how often. The invocations are going to be evenly spaced out (best effort), but the first invocation might be almost immediately after the call or a whole interval after.

You can use the firstRun argument to control when the first invocation is going to be (but the same rule will still apply to the second one).

Parameters

interval Duration

the frequency with which the callback will be called.

dg void delegate
()

the callback to invoke

firstRun Timeout

if supplied, directly sets when is the first time the timer shall run. The value does not have any special constraints.

Meta