vibe.d beta banner
get vibe.d
0.10.0

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 = Trigger.any
) @safe;

bool wait (
  core.time.Duration timeout,
  FileDescriptorEvent.Trigger which = Trigger.any
) @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-2020 Sönke Ludwig

License

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