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

Method put

Lib/multiprocessing/queues.py:84–94  ·  view source on GitHub ↗
(self, obj, block=True, timeout=None)

Source from the content-addressed store, hash-verified

82 self._poll = self._reader.poll
83
84 def put(self, obj, block=True, timeout=None):
85 if self._closed:
86 raise ValueError(f"Queue {self!r} is closed")
87 if not self._sem.acquire(block, timeout):
88 raise Full
89
90 with self._notempty:
91 if self._thread is None:
92 self._start_thread()
93 self._buffer.append(obj)
94 self._notempty.notify()
95
96 def get(self, block=True, timeout=None):
97 if self._closed:

Callers 13

put_nowaitMethod · 0.95
__delitem__Method · 0.45
__del__Method · 0.45
imapMethod · 0.45
imap_unorderedMethod · 0.45
apply_asyncMethod · 0.45
_map_asyncMethod · 0.45
_handle_workersMethod · 0.45
_handle_tasksMethod · 0.45
closeMethod · 0.45
_terminate_poolMethod · 0.45
_help_stuff_finishMethod · 0.45

Calls 4

_start_threadMethod · 0.95
acquireMethod · 0.45
appendMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected