AsyncNotifier

Thread-local event dispatcher/handler, used to wake up the associated callback in a new call stack originating from the event loop.

Constructors

this
this(EventLoop evl)

Members

Functions

handler
void handler()
Undocumented in source. Be warned that the author may not have intended to support it.
kill
bool kill()

Cleans up associated resources.

run
bool run(void delegate() del)

Starts the notifier with the associated delegate (handler)

trigger
bool trigger()

Enqueues a call to the handler originating from the thread-local event loop.

Mixins

__anonymous
mixin DefStatus
Undocumented in source.
__anonymous
mixin EvInfoMixins
Undocumented in source.

Properties

id
fd_t id [@property getter]

Variables

m_evh
void delegate() m_evh;

Mixed In Members

From mixin DefStatus

hasError
bool hasError [@property getter]

Check this property to make sure the event loop hasn't failed

status
StatusInfo status [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
error
string error [@property getter]

Returns a human-readable error message from the underlying operating system.

From mixin EvInfoMixins

CleanupData
struct CleanupData
Undocumented in source.
evInfo
EventInfo* evInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
evInfo
EventInfo* evInfo [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta