MCPcopy Index your code
hub / github.com/python/cpython / recv_wait

Function recv_wait

Lib/test/test__interpchannels.py:31–39  ·  view source on GitHub ↗
(cid)

Source from the content-addressed store, hash-verified

29# helpers
30
31def recv_wait(cid):
32 while True:
33 try:
34 obj, unboundop = _channels.recv(cid)
35 except _channels.ChannelEmptyError:
36 time.sleep(0.1)
37 else:
38 assert unboundop is None, repr(unboundop)
39 return obj
40
41
42def recv_nowait(cid, *args, unbound=False):

Calls 2

recvMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…