Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e3666fc8
Commit
e3666fc8
authored
Dec 18, 2018
by
Hrvoje Nikšić
Committed by
Yury Selivanov
Dec 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)
parent
d2a75c67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+8
-0
No files found.
Doc/library/asyncio-eventloop.rst
View file @
e3666fc8
...
...
@@ -966,12 +966,20 @@ Unix signals
Set *callback* as the handler for the *signum* signal.
The callback will be invoked by *loop*, along with other queued callbacks
and runnable coroutines of that event loop. Unlike signal handlers
registered using :func:`signal.signal`, a callback registered with this
function is allowed to interact with the event loop.
Raise :exc:`ValueError` if the signal number is invalid or uncatchable.
Raise :exc:`RuntimeError` if there is a problem setting up the handler.
Use :func:`functools.partial` :ref:`to pass keyword arguments
<asyncio-pass-keywords>` to *callback*.
Like :func:`signal.signal`, this function must be invoked in the main
thread.
.. method:: loop.remove_signal_handler(sig)
Remove the handler for the *sig* signal.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment