()
| 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) |