TimerTask

Represents a task that needs to run at some point in the future.

Constructors

this
this(Handler handler)
Undocumented in source.
this
deprecated this(Duration delay, Handler handler)
Undocumented in source.

Members

Aliases

Handler
alias Handler = void delegate(Timer timer, TimerTask task)

Called when this timer task fires.

Functions

cancel
void cancel()

Remove this task from the scheduler.

isWaiting
bool isWaiting()

Return whether the task is scheduled to run on a Timer.

restart
void restart(MonoTime when)

Reschedule the task to run at some other time.

restart
deprecated void restart()

Reschedule the task to run with the same delay from now.

Properties

delay
deprecated Duration delay [@property getter]
deprecated Duration delay [@property setter]

The duration that this task is scheduled to run after. Changing the delay is only allowed for inactive tasks.

when
MonoTime when [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

handleTask
Handler handleTask;

Called when this timer task fires.

Meta