MCPcopy
hub / github.com/psycopg/psycopg / tgen

Function tgen

tests/test_waiting_async.py:47–50  ·  view source on GitHub ↗

A generator waiting for a specific event and returning what waited on.

(wait)

Source from the content-addressed store, hash-verified

45
46
47def tgen(wait):
48 """A generator waiting for a specific event and returning what waited on."""
49 r = yield wait
50 return r
51
52
53@pytest.mark.parametrize("interval", intervals)

Callers 5

test_wait_rFunction · 0.70
test_wait_r_no_linuxFunction · 0.70
test_wait_r_nowaitFunction · 0.70
test_wait_wFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected