dast ~master (2026-11-07T20:52:07.6172367)
Dub
Repo
Timer
dast
async
timer
common
Undocumented in source.
nothrow abstract
class
Timer {
protected
bool
_isActive
;
protected
size_t
_interval
;
TickedHandler
ticked
;
bool
isActive
[@property getter];
size_t
wheelSize
[@property getter];
size_t
time
[@property getter];
size_t
interval
[@property getter];
size_t
interval
[@property setter];
Duration
interval
[@property setter];
void
start
();
void
stop
();
void
reset
(size_t interval);
void
reset
(Duration duration);
void
reset
();
void
onTick
();
protected
uint
_wheelSize
;
protected
uint
_circle
;
}
Members
Functions
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
(Duration duration)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void
reset
()
Undocumented in source. Be warned that the author may not have intended to support it.
start
void
start
()
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void
stop
()
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
interval
size_t
interval
[@property getter]
size_t
interval
[@property setter]
Duration
interval
[@property setter]
in ms
isActive
bool
isActive
[@property getter]
time
size_t
time
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
wheelSize
size_t
wheelSize
[@property getter]
_circle
uint
_circle
;
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_interval
size_t
_interval
;
Undocumented in source.
_isActive
bool
_isActive
;
Undocumented in source.
_wheelSize
uint
_wheelSize
;
Undocumented in source.
ticked
TickedHandler
ticked
;
Timer tick handler - The handler will be handled in another thread
Meta
Source
See Implementation
dast
async
timer
common
aliases
TickedHandler
TimeoutHandler
classes
KissWheelTimer
NullWheelTimer
Timer
TimingWheel
WheelTimer
structs
CustomTimer