DatagramBased.conditionWait
bool conditionWait(glib.types.IOCondition condition, long timeout, gio.cancellable.Cancellable cancellable = null)Waits for up to timeout microseconds for condition to become true on datagram_based. If the condition is met, true is returned.
If cancellable is cancelled before the condition is met, or if timeout is reached before the condition is met, then false is returned and error is set appropriately ([gio.types.IOErrorEnum.Cancelled] or [gio.types.IOErrorEnum.TimedOut]).
Parameters
condition | a #GIOCondition mask to wait for |
timeout | the maximum time (in microseconds) to wait, 0 to not block, or -1 to block indefinitely |
cancellable | a #GCancellable |
Returns
true if the condition was met, false otherwise
Throws
[ErrorWrap]