File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -960,12 +960,20 @@ Unix signals
960960
961961 Set *callback * as the handler for the *signum * signal.
962962
963+ The callback will be invoked by *loop *, along with other queued callbacks
964+ and runnable coroutines of that event loop. Unlike signal handlers
965+ registered using :func: `signal.signal `, a callback registered with this
966+ function is allowed to interact with the event loop.
967+
963968 Raise :exc: `ValueError ` if the signal number is invalid or uncatchable.
964969 Raise :exc: `RuntimeError ` if there is a problem setting up the handler.
965970
966971 Use :func: `functools.partial ` :ref: `to pass keyword arguments
967972 <asyncio-pass-keywords>` to *callback *.
968973
974+ Like :func: `signal.signal `, this function must be invoked in the main
975+ thread.
976+
969977.. method :: loop.remove_signal_handler(sig)
970978
971979 Remove the handler for the *sig * signal.
You can’t perform that action at this time.
0 commit comments