Calls the given callback on the next I/O loop iteration. It is safe to call this method from any thread at any time, except from a signal handler. Note that this is the **only** method in `IOLoop` that makes this thread-safety guarantee; all other interaction with t
(self, callback: Callable, *args: Any, **kwargs: Any)
| 626 | raise NotImplementedError() |
| 627 | |
| 628 | def add_callback(self, callback: Callable, *args: Any, **kwargs: Any) -> None: |
| 629 | """Calls the given callback on the next I/O loop iteration. |
| 630 | |
| 631 | It is safe to call this method from any thread at any time, |
| 632 | except from a signal handler. Note that this is the **only** |
| 633 | method in `IOLoop` that makes this thread-safety guarantee; all |
| 634 | other interaction with the `IOLoop` must be done from that |
| 635 | `IOLoop`'s thread. `add_callback()` may be used to transfer |
| 636 | control from other threads to the `IOLoop`'s thread. |
| 637 | |
| 638 | To add a callback from a signal handler, see |
| 639 | `add_callback_from_signal`. |
| 640 | """ |
| 641 | raise NotImplementedError() |
| 642 | |
| 643 | def add_callback_from_signal( |
| 644 | self, callback: Callable, *args: Any, **kwargs: Any |
no outgoing calls