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.
_loop
Selector _loop;
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