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

Method on_timeout

tornado/locks.py:131–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 if timeout:
130
131 def on_timeout() -> None:
132 if not waiter.done():
133 future_set_result_unless_cancelled(waiter, False)
134 self._garbage_collect()
135
136 io_loop = ioloop.IOLoop.current()
137 timeout_handle = io_loop.add_timeout(timeout, on_timeout)

Calls 3

_garbage_collectMethod · 0.80
doneMethod · 0.45