MCPcopy
hub / github.com/tornadoweb/tornado / callback

Method callback

tornado/process.py:296–303  ·  view source on GitHub ↗
(ret: int)

Source from the content-addressed store, hash-verified

294 future = Future() # type: Future[int]
295
296 def callback(ret: int) -> None:
297 if ret != 0 and raise_error:
298 # Unfortunately we don't have the original args any more.
299 future_set_exception_unless_cancelled(
300 future, CalledProcessError(ret, "unknown")
301 )
302 else:
303 future_set_result_unless_cancelled(future, ret)
304
305 self.set_exit_callback(callback)
306 return future

Callers 3

parseMethod · 0.45
setMethod · 0.45
_runMethod · 0.45

Tested by

no test coverage detected