Timer

Manages and schedules a list of timer tasks.

Members

Functions

add
deprecated void add(TimerTask task)
Undocumented in source. Be warned that the author may not have intended to support it.
add
void add(TimerTask task, MonoTime when)
Undocumented in source. Be warned that the author may not have intended to support it.
getNextEvent
MonoTime getNextEvent()

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

getRemainingTime
Duration getRemainingTime(MonoTime now)

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

getRemainingTime
deprecated Duration getRemainingTime()
Undocumented in source. Be warned that the author may not have intended to support it.
isWaiting
bool isWaiting()

Return true if there are pending tasks scheduled.

prod
bool prod(MonoTime now)

Run scheduled tasks. Returns true if any tasks ran.

prod
deprecated bool prod()
Undocumented in source. Be warned that the author may not have intended to support it.

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