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

Method put_nowait

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

353 return self._queue.popleft()
354
355 def put_nowait(self, item):
356 '''Put an item into the queue without blocking.
357
358 This is exactly equivalent to `put(item, block=False)` and is only provided
359 for compatibility with the Queue class.
360 '''
361 return self.put(item, block=False)
362
363 def get_nowait(self):
364 '''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