MCPcopy
hub / github.com/opendevops-cn/opendevops / timeout_callback

Function timeout_callback

scripts/tornado_source_code/tornado/gen.py:596–600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

594 )
595
596 def timeout_callback() -> None:
597 if not result.done():
598 result.set_exception(TimeoutError("Timeout"))
599 # In case the wrapped future goes on to fail, log it.
600 future_add_done_callback(future_converted, error_callback)
601
602 timeout_handle = io_loop.add_timeout(timeout, timeout_callback)
603 if isinstance(future_converted, Future):

Callers

nothing calls this directly

Calls 3

TimeoutErrorClass · 0.90
future_add_done_callbackFunction · 0.90
doneMethod · 0.45

Tested by

no test coverage detected