File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -966,12 +966,20 @@ Unix signals
966966
967967 Set *callback * as the handler for the *signum * signal.
968968
969+ The callback will be invoked by *loop *, along with other queued callbacks
970+ and runnable coroutines of that event loop. Unlike signal handlers
971+ registered using :func: `signal.signal `, a callback registered with this
972+ function is allowed to interact with the event loop.
973+
969974 Raise :exc: `ValueError ` if the signal number is invalid or uncatchable.
970975 Raise :exc: `RuntimeError ` if there is a problem setting up the handler.
971976
972977 Use :func: `functools.partial ` :ref: `to pass keyword arguments
973978 <asyncio-pass-keywords>` to *callback *.
974979
980+ Like :func: `signal.signal `, this function must be invoked in the main
981+ thread.
982+
975983.. method :: loop.remove_signal_handler(sig)
976984
977985 Remove the handler for the *sig * signal.
You can’t perform that action at this time.
0 commit comments