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

Method get_nowait

Lib/queue.py:225–231  ·  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

223 return self.put(item, block=False)
224
225 def get_nowait(self):
226 '''Remove and return an item from the queue without blocking.
227
228 Only get an item if one is immediately available. Otherwise
229 raise the Empty exception.
230 '''
231 return self.get(block=False)
232
233 def shutdown(self, immediate=False):
234 '''Shut-down the queue, making queue gets and puts raise ShutDown.

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected