MCPcopy
hub / github.com/opendevops-cn/opendevops / add_callback

Method add_callback

scripts/tornado_source_code/tornado/ioloop.py:631–644  ·  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

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

Callers 14

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 1