MCPcopy
hub / github.com/psycopg/psycopg / writer

Function writer

tests/test_waiting.py:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 ev = Event()
76
77 def writer():
78 # Wake up the socket, or let it time out, according to the expected `ready`.
79 ev.wait()
80 assert port
81 sleep(delay)
82 if ready == waiting.Ready.R:
83 with socket.create_connection(("127.0.0.1", port)):
84 pass
85
86 tasks = [spawn(writer)]
87

Callers

nothing calls this directly

Calls 4

waitMethod · 0.45
closeMethod · 0.45
failMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected