Function FileDescriptorEvent.wait
Waits for the selected event to occur.
void wait
(
FileDescriptorEvent . Trigger which = Trigger .any
) @safe;
bool wait
(
core .time .Duration timeout,
FileDescriptorEvent . Trigger which = Trigger .any
) @safe;
Parameters
Name | Description |
---|---|
which | Optional event mask to react only on certain events |
timeout | Maximum time to wait for an event |
Returns
The overload taking the timeout parameter returns true if an event was received on time and false otherwise.