vibe.d beta banner
get vibe.d
0.7.30

Function FileDescriptorEvent.wait

Waits for the selected event to occur.

Prototypes

abstract FileDescriptorEvent.Trigger wait(
  FileDescriptorEvent.Trigger which = cast(Trigger)3
);

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

Parameters

NameDescription
which Optional event mask to react only on certain events
timeout Maximum time to wait for an event

Returns

If events occurs, returns a mask of these events. If the timeout expired, returns the Trigger.none

Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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