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

Method weakref_cb

Lib/concurrent/futures/thread.py:226–227  ·  view source on GitHub ↗
(_, q=self._work_queue)

Source from the content-addressed store, hash-verified

224 # When the executor gets lost, the weakref callback will wake up
225 # the worker threads.
226 def weakref_cb(_, q=self._work_queue):
227 q.put(None)
228
229 num_threads = len(self._threads)
230 if num_threads < self._max_workers:

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected