-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1696 from catern/master
Nursery: don't act as a checkpoint when not running anything
- Loading branch information
Showing
3 changed files
with
63 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
When exiting a nursery block, the parent task always waits for child | ||
tasks to exit. This wait cannot be cancelled. However, previously, if | ||
you tried to cancel it, it *would* inject a `Cancelled` exception, | ||
even though it wasn't cancelled. Most users probably never noticed | ||
either way, but injecting a `Cancelled` here is not really useful, and | ||
in some rare cases caused confusion or problems, so Trio no longer | ||
does that. |
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