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

Method _put

Lib/test/test_queue.py:449–457  ·  view source on GitHub ↗
(self, q, msg, go, results, shutdown=False)

Source from the content-addressed store, hash-verified

447 return False
448
449 def _put(self, q, msg, go, results, shutdown=False):
450 go.wait()
451 try:
452 q.put(msg)
453 results.append(not shutdown)
454 return not shutdown
455 except self.queue.ShutDown:
456 results.append(shutdown)
457 return shutdown
458
459 def _put_shutdown(self, q, msg, go, results):
460 return self._put(q, msg, go, results, True)

Callers 2

_put_shutdownMethod · 0.95
_putMethod · 0.45

Calls 3

waitMethod · 0.45
putMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected