Function FileDescriptorEvent.wait

Waits for the selected event to occur.

Prototypes

void wait(
  FileDescriptorEvent.Trigger which
) abstract;

bool wait(
  core.time.Duration timeout,
  FileDescriptorEvent.Trigger which
) abstract;

Parameters

NameDescription
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.

Authors

Sönke Ludwig

Copyright

© 2012-2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.