MCPcopy
hub / github.com/urllib3/urllib3 / wait_for_write

Function wait_for_write

src/urllib3/util/wait.py:120–124  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

118
119
120def 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)

Callers 1

test_wait_for_read_writeFunction · 0.90

Calls 1

wait_for_socketFunction · 0.70

Tested by 1

test_wait_for_read_writeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…