vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

Function FileDescriptorEvent.wait

Waits for the selected event to occur.

void wait (
  FileDescriptorEvent.Trigger which = cast(Trigger)3
) @safe;

bool wait (
  core.time.Duration timeout,
  FileDescriptorEvent.Trigger which = cast(Trigger)3
) @safe;

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-2017 RejectedSoftware e.K.

License

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