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

Method get_nowait

Lib/queue.py:363–369  ·  view source on GitHub ↗

Remove and return an item from the queue without blocking. Only get an item if one is immediately available. Otherwise raise the Empty exception.

(self)

Source from the content-addressed store, hash-verified

361 return self.put(item, block=False)
362
363 def get_nowait(self):
364 '''Remove and return an item from the queue without blocking.
365
366 Only get an item if one is immediately available. Otherwise
367 raise the Empty exception.
368 '''
369 return self.get(block=False)
370
371 def empty(self):
372 '''Return True if the queue is empty, False otherwise (not reliable!).'''

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected