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

Method run

Lib/concurrent/futures/interpreter.py:82–91  ·  view source on GitHub ↗
(self, task)

Source from the content-addressed store, hash-verified

80 interp.close()
81
82 def run(self, task):
83 try:
84 return self.interp.call(do_call, self.results, *task)
85 except interpreters.ExecutionFailed as wrapper:
86 # Wait for the exception data to show up.
87 exc = self.results.get()
88 if exc is None:
89 # The exception must have been not shareable.
90 raise # re-raise
91 raise exc from wrapper
92
93
94class BrokenInterpreterPool(_thread.BrokenThreadPool):

Callers 1

initializeMethod · 0.95

Calls 2

callMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected