FiberSelectEvent

Fiber select event class

Constructors

this
this(SelectFiber fiber)

Constructor.

Members

Functions

cede
void cede()

Combining trigger() then wait(), this method causes the epoll event loop to be resumed, giving other select clients a chance to do something.

events
Event events()

Returs: the epoll events to register for.

fileHandle
Handle fileHandle()

Required by ISelectable interface.

handle
bool handle(Event events)

Handles events which occurred for the custom event fd.

trigger
void trigger()

Triggers the event.

wait
void wait()

Suspends the fiber until the event is triggered.

Inherited Members

From IFiberSelectClient

SelectFiber
alias SelectFiber = .SelectFiber

Type alias for subclass constructors

fiber
SelectFiber fiber;

Fiber instance

io_error
bool io_error;

Flag set to true when the error_() method is called due to an I/O error event. The flag is always reset in the finalize() method.

finalize
void finalize(FinalizeStatus status)

Finalize method, called after this instance has been unregistered from the Dispatcher; kills the fiber and calls the super-class' finalize() method (which calls a finalizer delegate, if one has been set).

error_
void error_(Exception e, Event event)

Error reporting method, called when either an Exception is caught from handle() or an error event is reported; kills the fiber.

timeout
void timeout()

Timeout method, called after this a timeout has occurred in the SelectDispatcher; kills the fiber.

Meta