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

Class Worker

Lib/test/test_importlib/threaded_import_hangers.py:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19# to do its own imports it will block waiting for this module's import
20# to complete.
21class Worker(threading.Thread):
22 def __init__(self, function, args):
23 threading.Thread.__init__(self)
24 self.function = function
25 self.args = args
26
27 def run(self):
28 self.function(*self.args)
29
30for name, func, args in [
31 # Bug 147376: TemporaryFile hung on Windows, starting in Python 2.4.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…