conditionWait

open fun conditionWait(condition: <Error class: unknown class>, cancellable: Cancellable? = null): <Error class: unknown class><Boolean>

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 (%G_IO_ERROR_CANCELLED or %G_IO_ERROR_TIMED_OUT).

See also g_socket_condition_timed_wait().

Return

true if the condition was met, false otherwise

Since

2.22

Parameters

condition

a #GIOCondition mask to wait for

cancellable

a #GCancellable, or null