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

Method empty

Lib/asyncio/queues.py:110–112  ·  view source on GitHub ↗

Return True if the queue is empty, False otherwise.

(self)

Source from the content-addressed store, hash-verified

108 return self._maxsize
109
110 def empty(self):
111 """Return True if the queue is empty, False otherwise."""
112 return not self._queue
113
114 def full(self):
115 """Return True if there are maxsize items in the queue.

Callers 15

getMethod · 0.95
get_nowaitMethod · 0.95
shutdownMethod · 0.95
test_enter_concurrentMethod · 0.95
test_emptyMethod · 0.95
basic_queue_testMethod · 0.45
run_threadsMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_enter_concurrentMethod · 0.76
test_emptyMethod · 0.76
basic_queue_testMethod · 0.36
run_threadsMethod · 0.36
test_basicMethod · 0.36
test_priorityMethod · 0.36
test_emptyMethod · 0.36