-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add top-level try_shutdown method. (#1302)
I noticed that this was needed when trying to convert some of the examples over to the context manager. They currently throw an exception because the signal handler does the shutdown, and then leaving the context tries to do it again. This is also more symmetric with what shutdown() does, in that it also uninstalls signal handlers. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
cef4ce9
commit ee22148
Showing
1 changed file
with
28 additions
and
2 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