Waits for writing to be available on a given socket. Returns True if the socket is readable, or False if the timeout expired.
(sock: socket.socket, timeout: float | None = None)
| 118 | |
| 119 | |
| 120 | def wait_for_write(sock: socket.socket, timeout: float | None = None) -> bool: |
| 121 | """Waits for writing to be available on a given socket. |
| 122 | Returns True if the socket is readable, or False if the timeout expired. |
| 123 | """ |
| 124 | return wait_for_socket(sock, write=True, timeout=timeout) |
searching dependent graphs…