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

Method empty

Lib/multiprocessing/queues.py:372–373  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

370 self._writer.close()
371
372 def empty(self):
373 return not self._poll()
374
375 def __getstate__(self):
376 context.assert_spawning(self)

Callers 2

test_empty_exceptionsMethod · 0.95
test_emptyMethod · 0.95

Calls 1

_pollMethod · 0.45

Tested by 2

test_empty_exceptionsMethod · 0.76
test_emptyMethod · 0.76