Timer

Manages and schedules a list of timer tasks.

Members

Functions

add
void add(TimerTask task)

Add a new task to the timer.

getNextEvent
MonoTime getNextEvent()

Return the MonoTime of the next scheduled task, or MonoTime.max if no tasks are scheduled.

getRemainingTime
Duration getRemainingTime()

Return the time until the first scheduled task, or Duration.max if no tasks are scheduled.

isWaiting
bool isWaiting()

Return true if there are pending tasks scheduled.

prod
bool prod()

Run scheduled tasks. Returns true if any tasks ran.

Variables

disabled
bool disabled;

Pretend there are no tasks scheduled.

n
int n;
Undocumented in source.
next
auto next;
Undocumented in source.
t
TimerTask t;
Undocumented in source.

Meta