Return a list of all open queues.
()
| 80 | |
| 81 | |
| 82 | def 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…