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

Method qsize

Lib/queue.py:107–110  ·  view source on GitHub ↗

Return the approximate size of the queue (not reliable!).

(self)

Source from the content-addressed store, hash-verified

105 self.all_tasks_done.wait()
106
107 def qsize(self):
108 '''Return the approximate size of the queue (not reliable!).'''
109 with self.mutex:
110 return self._qsize()
111
112 def empty(self):
113 '''Return True if the queue is empty, False otherwise (not reliable!).

Callers

nothing calls this directly

Calls 1

_qsizeMethod · 0.95

Tested by

no test coverage detected