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

Function on_timeout

tornado/queues.py:64–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 if timeout:
63
64 def on_timeout() -> None:
65 if not future.done():
66 future.set_exception(gen.TimeoutError())
67
68 io_loop = ioloop.IOLoop.current()
69 timeout_handle = io_loop.add_timeout(timeout, on_timeout)

Callers

nothing calls this directly

Calls 1

doneMethod · 0.45

Tested by

no test coverage detected