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

Method add_callback

tornado/ioloop.py:646–656  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

644 raise NotImplementedError()
645
646 def add_callback(self, callback: Callable, *args: Any, **kwargs: Any) -> None:
647 """Calls the given callback on the next I/O loop iteration.
648
649 It is safe to call this method from any thread at any time,
650 except from a signal handler. Note that this is the **only**
651 method in `IOLoop` that makes this thread-safety guarantee; all
652 other interaction with the `IOLoop` must be done from that
653 `IOLoop`'s thread. `add_callback()` may be used to transfer
654 control from other threads to the `IOLoop`'s thread.
655 """
656 raise NotImplementedError()
657
658 def add_callback_from_signal(
659 self, callback: Callable, *args: Any, **kwargs: Any

Callers 15

waitFunction · 0.95
run_syncMethod · 0.95
spawn_callbackMethod · 0.95
add_futureMethod · 0.95
_signal_closedMethod · 0.45
_handle_eventsMethod · 0.45
handle_yieldMethod · 0.45
write_functionMethod · 0.45
_curl_header_callbackMethod · 0.45
_on_timeoutMethod · 0.45
_run_callbackMethod · 0.45

Calls

no outgoing calls

Tested by 2

workMethod · 0.36