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

Method task_done

Lib/multiprocessing/queues.py:341–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 self._notempty.notify()
340
341 def task_done(self):
342 with self._cond:
343 if not self._unfinished_tasks.acquire(False):
344 raise ValueError('task_done() called too many times')
345 if self._unfinished_tasks._semlock._is_zero():
346 self._cond.notify_all()
347
348 def join(self):
349 with self._cond:

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
notify_allMethod · 0.45

Tested by

no test coverage detected