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

Method _set

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

Source from the content-addressed store, hash-verified

774 raise self._value
775
776 def _set(self, i, obj):
777 self._success, self._value = obj
778 if self._callback and self._success:
779 self._callback(self._value)
780 if self._error_callback and not self._success:
781 self._error_callback(self._value)
782 self._event.set()
783 del self._cache[self._job]
784 self._pool = None
785
786 __class_getitem__ = classmethod(types.GenericAlias)
787

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected