Runs the ``callback`` at the absolute time designated by ``when``. ``when`` must be a number using the same reference point as `IOLoop.time`. Returns an opaque handle that may be passed to `remove_timeout` to cancel. Note that unlike the `asyncio` method of the sam
(
self, when: float, callback: Callable, *args: Any, **kwargs: Any
)
| 599 | return self.call_at(self.time() + delay, callback, *args, **kwargs) |
| 600 | |
| 601 | def call_at( |
| 602 | self, when: float, callback: Callable, *args: Any, **kwargs: Any |
| 603 | ) -> object: |
| 604 | """Runs the ``callback`` at the absolute time designated by ``when``. |
| 605 | |
| 606 | ``when`` must be a number using the same reference point as |
| 607 | `IOLoop.time`. |
| 608 | |
| 609 | Returns an opaque handle that may be passed to `remove_timeout` |
| 610 | to cancel. Note that unlike the `asyncio` method of the same |
| 611 | name, the returned object does not have a ``cancel()`` method. |
| 612 | |
| 613 | See `add_timeout` for comments on thread-safety and subclassing. |
| 614 | |
| 615 | .. versionadded:: 4.0 |
| 616 | """ |
| 617 | return self.add_timeout(when, callback, *args, **kwargs) |
| 618 | |
| 619 | def remove_timeout(self, timeout: object) -> None: |
| 620 | """Cancels a pending timeout. |
no test coverage detected