forked from python-trio/trio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New signal API: trio.open_signal_receiver
Fixes python-triogh-354 Other changes: - deprecate trio.catch_signal - fix a few small edge-cases I noticed along the way
- Loading branch information
Showing
5 changed files
with
178 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
New and improved signal catching API: :func:`open_signal_receiver`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
``trio.signal_catcher`` has been deprecated in favor of | ||
:func:`open_signal_receiver`. The main differences are: | ||
|
||
- it takes \*-args now to specify the list of signals (so | ||
``open_signal_receiver(SIGINT)`` instead of | ||
``signal_catcher({SIGINT})``) | ||
- the async iterator now yields individual signals, instead of | ||
"batches" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.