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

Function queue_empty

Lib/test/_test_multiprocessing.py:1174–1178  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

1172#
1173
1174def queue_empty(q):
1175 if hasattr(q, 'empty'):
1176 return q.empty()
1177 else:
1178 return q.qsize() == 0
1179
1180def queue_full(q, maxsize):
1181 if hasattr(q, 'full'):

Callers 3

test_putMethod · 0.85
test_getMethod · 0.85
run_tasksMethod · 0.85

Calls 2

emptyMethod · 0.45
qsizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…