-
-
Notifications
You must be signed in to change notification settings - Fork 345
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 #958 from oremanj/cancelstatus
Refactor cancellation system to eagerly propagate effective state
- Loading branch information
Showing
5 changed files
with
273 additions
and
166 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,4 @@ | ||
The plumbing of Trio's cancellation system has been substantially overhauled | ||
to improve performance and ease future planned improvements. Notably, there is | ||
no longer any internal concept of a "cancel stack", and checkpoints now take | ||
constant time regardless of the cancel scope nesting depth. |
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,5 @@ | ||
Inspecting the :attr:`~trio.CancelScope.cancel_called` attribute of a | ||
not-yet-exited cancel scope whose deadline is in the past now always | ||
returns ``True``, like you might expect. (Previously it would return | ||
``False`` for not-yet-entered cancel scopes, and for active cancel | ||
scopes until the first checkpoint after their deadline expiry.) |
Oops, something went wrong.