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

Function list_all

Lib/concurrent/interpreters/_queues.py:82–92  ·  view source on GitHub ↗

Return a list of all open queues.

()

Source from the content-addressed store, hash-verified

80
81
82def list_all():
83 """Return a list of all open queues."""
84 queues = []
85 for qid, unboundop, _ in _queues.list_all():
86 self = Queue(qid)
87 if not hasattr(self, '_unbound'):
88 self._set_unbound(unboundop)
89 else:
90 assert self._unbound[0] == unboundop
91 queues.append(self)
92 return queues
93
94
95_known_queues = weakref.WeakValueDictionary()

Callers

nothing calls this directly

Calls 3

QueueClass · 0.70
_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…