FileDescriptorEvent.wait

Waits for the selected event to occur.

  1. void wait(Trigger which)
  2. bool wait(Duration timeout, Trigger which)
    struct FileDescriptorEvent
    @safe
    bool
    wait

Parameters

which Trigger

Optional event mask to react only on certain events

timeout Duration

Maximum time to wait for an event

Return Value

Type: bool

The overload taking the timeout parameter returns true if an event was received on time and false otherwise.

Meta