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

Function queue_empty

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

Source from the content-addressed store, hash-verified

1025#
1026
1027def queue_empty(q):
1028 if hasattr(q, 'empty'):
1029 return q.empty()
1030 else:
1031 return q.qsize() == 0
1032
1033def queue_full(q, maxsize):
1034 if hasattr(q, 'full'):

Callers 2

test_putMethod · 0.85
test_getMethod · 0.85

Calls 3

hasattrFunction · 0.85
emptyMethod · 0.45
qsizeMethod · 0.45

Tested by

no test coverage detected