(cid)
| 29 | # helpers |
| 30 | |
| 31 | def 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 | |
| 42 | def recv_nowait(cid, *args, unbound=False): |
no test coverage detected
searching dependent graphs…