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

Method qsize

Lib/asyncio/queues.py:101–103  ·  view source on GitHub ↗

Number of items in the queue.

(self)

Source from the content-addressed store, hash-verified

99 return result
100
101 def qsize(self):
102 """Number of items in the queue."""
103 return len(self._queue)
104
105 @property
106 def maxsize(self):

Callers 15

fullMethod · 0.95
test_qsizeMethod · 0.95
test_put_cancel_dropMethod · 0.95
qfullFunction · 0.45
basic_queue_testMethod · 0.45
test_shrinking_queueMethod · 0.45
_shutdown_threadMethod · 0.45
_shutdown_joinMethod · 0.45
failing_queue_testMethod · 0.45
run_threadsMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_qsizeMethod · 0.76
test_put_cancel_dropMethod · 0.76
qfullFunction · 0.36
basic_queue_testMethod · 0.36
test_shrinking_queueMethod · 0.36
_shutdown_threadMethod · 0.36
_shutdown_joinMethod · 0.36
failing_queue_testMethod · 0.36
run_threadsMethod · 0.36
test_basicMethod · 0.36