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

Function list_all

Lib/test/support/channels.py:64–74  ·  view source on GitHub ↗

Return a list of (recv, send) for all open channels.

()

Source from the content-addressed store, hash-verified

62
63
64def list_all():
65 """Return a list of (recv, send) for all open channels."""
66 channels = []
67 for cid, unboundop, _ in _channels.list_all():
68 chan = _, send = RecvChannel(cid), SendChannel(cid)
69 if not hasattr(send, '_unboundop'):
70 send._set_unbound(unboundop)
71 else:
72 assert send._unbound[0] == unboundop
73 channels.append(chan)
74 return channels
75
76
77class _ChannelEnd:

Callers

nothing calls this directly

Calls 4

RecvChannelClass · 0.85
SendChannelClass · 0.85
_set_unboundMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…