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

Method _set_length

Lib/multiprocessing/pool.py:894–900  ·  view source on GitHub ↗
(self, length)

Source from the content-addressed store, hash-verified

892 self._pool = None
893
894 def _set_length(self, length):
895 with self._cond:
896 self._length = length
897 if self._index == self._length:
898 self._cond.notify()
899 del self._cache[self._job]
900 self._pool = None
901
902#
903# Class whose instances are returned by `Pool.imap_unordered()`

Callers

nothing calls this directly

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected