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

Method _set

Lib/multiprocessing/pool.py:908–915  ·  view source on GitHub ↗
(self, i, obj)

Source from the content-addressed store, hash-verified

906class IMapUnorderedIterator(IMapIterator):
907
908 def _set(self, i, obj):
909 with self._cond:
910 self._items.append(obj)
911 self._index += 1
912 self._cond.notify()
913 if self._index == self._length:
914 del self._cache[self._job]
915 self._pool = None
916
917#
918#

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected