TimerChannelBase

Constructors

this
this(Selector loop)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
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(Duration duration)
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. Be warned that the author may not have intended to support it.
start
void start(bool immediately, bool once)
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]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_circle
uint _circle;
Undocumented in source.
_interval
size_t _interval;
Undocumented in source.
_isActive
bool _isActive;
Undocumented in source.
_timeOut
size_t _timeOut;
Undocumented in source.
_wheelSize
uint _wheelSize;
Undocumented in source.
ticked
TickedEventHandler ticked;

Timer tick handler

Inherited Members

From AbstractChannel

handle
socket_t handle;
Undocumented in source.
errorHandler
ErrorEventHandler errorHandler;
Undocumented in source.
taskWorker
Worker taskWorker;
Undocumented in source.
_isRegistered
bool _isRegistered;
Undocumented in source.
_isClosed
bool _isClosed;
Undocumented in source.
isRegistered
bool isRegistered()
isClosing
bool isClosing()
isClosed
bool isClosed()
close
void close()
doClose
void doClose()
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose()
Undocumented in source. Be warned that the author may not have intended to support it.
errorOccurred
void errorOccurred(ErrorCode code, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
void onRead()
Undocumented in source. Be warned that the author may not have intended to support it.
onWrite
void onWrite()
Undocumented in source. Be warned that the author may not have intended to support it.
hasFlag
bool hasFlag(ChannelFlag index)
Undocumented in source. Be warned that the author may not have intended to support it.
type
ChannelType type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
eventLoop
Selector eventLoop [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
setNext
void setNext(AbstractChannel next)
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin OverrideErro
Undocumented in source.
setFlag
void setFlag(ChannelFlag index, bool enable)
Undocumented in source. Be warned that the author may not have intended to support it.
_inLoop
Selector _inLoop;
Undocumented in source.

From ITimer

isActive
bool isActive()
interval
size_t interval()
ITimer interval(size_t v)
ITimer interval(Duration duration)

in ms

onTick
ITimer onTick(TickedEventHandler handler)
start
void start(bool immediately, bool once)

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

stop
void stop()
Undocumented in source.
reset
void reset(bool immediately, bool once)
Undocumented in source.
reset
void reset(size_t interval)
Undocumented in source.
reset
void reset(Duration duration)
Undocumented in source.

Meta