AbstractNativeTimer

Constructors

this
this()
Undocumented in source.
this
this(size_t interval)
Undocumented in source.
this
this(Duration duration)
Undocumented in source.

Members

Functions

onTick
ITimer onTick(TickedEventHandler handler)

The handler will be handled in another thread.

onTick
void onTick()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset(size_t interval)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset(bool immediately, bool once)
Undocumented in source.
reset
void reset(Duration duration)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(bool immediately, bool once)

immediately: true to call first event immediately once: true to call timed event only once

start
void start(uint interval)
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()
Undocumented in source.

Properties

interval
size_t interval [@property getter]
size_t interval [@property setter]
Duration interval [@property setter]

in ms

isActive
bool isActive [@property getter]

Variables

_interval
size_t _interval;
Undocumented in source.
_isActive
bool _isActive;
Undocumented in source.
ticked
TickedEventHandler ticked;

Timer tick handler

Meta