MCPcopy Index your code
hub / github.com/RustPython/RustPython / list_all

Function list_all

Lib/test/support/channels.py:68–78  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

RecvChannelClass · 0.85
SendChannelClass · 0.85
hasattrFunction · 0.85
_set_unboundMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected