Socket.conditionWait
bool conditionWait(glib.types.IOCondition condition, gio.cancellable.Cancellable cancellable = null)Waits for condition to become true on socket. When the condition is met, true is returned.
If cancellable is cancelled before the condition is met, or if the socket has a timeout set and it is reached before the condition is met, then false is returned and error, if non-null, is set to the appropriate value ([gio.types.IOErrorEnum.Cancelled] or [gio.types.IOErrorEnum.TimedOut]).
See also [gio.socket.Socket.conditionTimedWait].
Parameters
condition | a #GIOCondition mask to wait for |
cancellable | a #GCancellable, or null |
Returns
true if the condition was met, false otherwise
Throws
[ErrorWrap]