8000 bpo-39622: Interrupt the main asyncio task on Ctrl+C by asvetlov · Pull Request #32105 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/asyncio-runner.rst
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
  • Loading branch information
asvetlov and kumaraditya303 authored Mar 29, 2022
commit d456248a8c4630b1faacaa270596a994fb9bbe03
2 changes: 1 addition & 1 deletion Doc/library/asyncio-runner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Handling Keyboard Interruption

.. versionadded:: 3.11

When a user hits the interrupt key (normally :kbd:`Ctrl-C`), :exc:`KeyboardInterrupt`
When :const:`signal.SIGINT` is raised by :kbd:`Ctrl-C`, :exc:`KeyboardInterrupt`
exception is raised in the main thread by default.

This approach doesn't work with asyncio, the interruption should never break asyncio
Expand Down
0