Creates a builder capable of building timers that perform a task once or repeatedly after the specified delay.
Creates a builder capable of building timers that perform a task once or repeatedly after the specified delay.
The amount of time to wait before performing the task for the first time.
Performs a task after the specified delay and repeatedly thereafter, waiting the specified interval between invocations.
Performs a task after the specified delay and repeatedly thereafter, waiting the specified interval between invocations.
Any type, treated as if it was Unit
.
The amount of time to wait before performing the task and between subsequent executions.
The action to repeatedly perform.
The execution context to perform the action on.
The default global timer backed by a single thread.
Submits a task for execution after the specified delay and possibly repeatedly thereafter, waiting the specified interval (if specified) between invocations.
Submits a task for execution after the specified delay and possibly repeatedly thereafter, waiting the specified interval (if specified) between invocations.
The amount of time to wait before performing the task for the first time.
A Some
containing the amount of time to wait between subsequent executions or None
.
The action to (possibly repeatedly) perform.
The execution context to perform the action on.
Definitions associated with timers as well as the infrastructure for publishing the global implicit timer.
This object publishes an implicit, lazily-initialized, global timer backed by a single daemon thread. It additionally implements
Timer
itself and forwards all task submissions to the aforementioned global timer.