TimerTask

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

Constructors

this
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()

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

Properties

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

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

Variables

handleTask
Handler handleTask;

Called when this timer task fires.

Meta