Performs an operation at the specified time.
Performs an operation at the specified time. Interrupting the Future will cancel the scheduled timer task, if not too late.
Performs an operation after the specified delay.
Performs an operation after the specified delay. Interrupting the Future will cancel the scheduled timer task, if not too late.
Run f
every elapsed period
, starting period
from now.
Run f
every elapsed period
, starting period
from now.
Run f
at time when
; subsequently run f
at every
elapsed period
.
Run f
at time when
; subsequently run f
at every
elapsed period
.
Run f
at time when
.
Run f
at time when
.
Pay attention that ticking frozen time forward more than 1x duration will result in only one invocation of your task.
Stop the timer.
Exceedingly useful for writing well-behaved tests that need control over a Timer. This is due to it playing well with the Time manipulation methods such as Time.withTimeAt, Time.withCurrentTimeFrozen, and so on.