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:185–191  ·  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

183 return item
184
185 def put_nowait(self, item):
186 '''Put an item into the queue without blocking.
187
188 Only enqueue the item if a free slot is immediately available.
189 Otherwise raise the Full exception.
190 '''
191 return self.put(item, block=False)
192
193 def get_nowait(self):
194 '''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