Skip to content

wait

wait_for_read(sock, timeout=None)

Waits for reading to be available on a given socket. Returns True if the socket is readable, or False if the timeout expired.

Source code in client/ayon_fusion/vendor/urllib3/util/wait.py
142
143
144
145
146
def wait_for_read(sock, timeout=None):
    """Waits for reading to be available on a given socket.
    Returns True if the socket is readable, or False if the timeout expired.
    """
    return wait_for_socket(sock, read=True, timeout=timeout)

wait_for_write(sock, timeout=None)

Waits for writing to be available on a given socket. Returns True if the socket is readable, or False if the timeout expired.

Source code in client/ayon_fusion/vendor/urllib3/util/wait.py
149
150
151
152
153
def wait_for_write(sock, timeout=None):
    """Waits for writing to be available on a given socket.
    Returns True if the socket is readable, or False if the timeout expired.
    """
    return wait_for_socket(sock, write=True, timeout=timeout)