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

Method put_nowait

Lib/queue.py:217–223  ·  view source on GitHub ↗

Put an item into the queue without blocking. Only enqueue the item if a free slot is immediately available. Otherwise raise the Full exception.

(self, item)

Source from the content-addressed store, hash-verified

215 return item
216
217 def put_nowait(self, item):
218 '''Put an item into the queue without blocking.
219
220 Only enqueue the item if a free slot is immediately available.
221 Otherwise raise the Full exception.
222 '''
223 return self.put(item, block=False)
224
225 def get_nowait(self):
226 '''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