Expand/Shrink

nopoll_conn_wait_until_connection_ready

Definition: include nopoll.e

bool ready = nopoll_conn_wait_until_connection_ready(atom conn, integer timeout)
Description: Wait until the specified connection is ready or the timeout is reached.

conn: The connection that is being waited to be created.
timeout: The timeout operation to limit the wait operation. Timeout is provided in seconds.

Returns: The function returns when the timeout was reached or the connection is ready.
In the case the connection is ready when the function finished true is returned, otherwise false.
See Also: nopoll_conn_is_ok, nopoll_conn_is_ready