Timers

ditto

Constructors

this
this()

Constructor. Creates the internal event timer set.

this
this(EpollSelectDispatcher epoll)

Constructor. Creates the internal event timer set.

Members

Aliases

EventDg
alias EventDg = bool delegate()

Type of delegate called when an event fires. The delegate's return value indicates whether the timed event should remain registered (true) or be unregistered (false).

Functions

clear
void clear()

Unregisters all timed events (thus unregisters the internal TimerEvent from epoll).

register
void register(EventDg dg, double init_s, double period_s)

Registers a timer with the extension. The provided delegate will be called once after the initial delay specified, then repeatedly according to the specified period, as long as it returns true.

register
void register(EventDg dg, double period_s)

Registers a timer with the extension. The provided delegate will be called repeatedly according to the specified period, as long as it returns true.

registerMicrosec
void registerMicrosec(EventDg dg, ulong init_microsec, ulong period_microsec)

Registers a timer with the extension. The provided delegate will be called once after the initial delay specified, then repeatedly according to the specified period, as long as it returns true.

Meta