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