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

Method put_nowait

tools/python-3.11.9-amd64/Lib/queue.py:298–304  ·  view source on GitHub ↗

Put an item into the queue without blocking. This is exactly equivalent to `put(item, block=False)` and is only provided for compatibility with the Queue class.

(self, item)

Source from the content-addressed store, hash-verified

296 return self._queue.popleft()
297
298 def put_nowait(self, item):
299 '''Put an item into the queue without blocking.
300
301 This is exactly equivalent to `put(item, block=False)` and is only provided
302 for compatibility with the Queue class.
303 '''
304 return self.put(item, block=False)
305
306 def get_nowait(self):
307 '''Remove and return an item from the queue without blocking.

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected