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

Method put_nowait

Lib/concurrent/interpreters/_queues.py:233–238  ·  view source on GitHub ↗
(self, obj, *, unbounditems=None)

Source from the content-addressed store, hash-verified

231 break
232
233 def put_nowait(self, obj, *, unbounditems=None):
234 if unbounditems is None:
235 unboundop = -1
236 else:
237 unboundop, = _serialize_unbound(unbounditems)
238 _queues.put(self._id, obj, unboundop)
239
240 def get(self, block=True, timeout=None, *,
241 _delay=10 / 1000, # 10 milliseconds

Callers 2

putMethod · 0.95
shutdown_workersMethod · 0.45

Calls 2

_serialize_unboundFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected