MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_nowait

Method get_nowait

tools/python-3.11.9-amd64/Lib/queue.py:193–199  ·  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

191 return self.put(item, block=False)
192
193 def get_nowait(self):
194 '''Remove and return an item from the queue without blocking.
195
196 Only get an item if one is immediately available. Otherwise
197 raise the Empty exception.
198 '''
199 return self.get(block=False)
200
201 # Override these methods to implement other queue organizations
202 # (e.g. stack or priority queue).

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected