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.
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.
A timer implemented with a Java
ScheduledExecutorService
.(Since version 1.1) Timers are replaced by the Clock API