-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: I gave a talk at pycon about what not to do with asyncio. One thing I said was not to break the cancellation contract. These changes make later.cancel() not break the cancellation contract, in the cases where it is cancelled while attempting to cancel a task. If the task being cancelled does anything but cancel, like raises some other error, or returns we raise an exception. I said I would have this out shortly after my talk, well I forgot. Reviewed By: cooperlees Differential Revision: D37406583 fbshipit-source-id: e7160598f5c6becb9064d7f12bdd013460d43c7f
- Loading branch information
1 parent
9efd44c
commit 50bcc37
Showing
2 changed files
with
128 additions
and
4 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