Repository navigation
Conversation
…task, with a cancel scope of its own The coroutine gets trio.Cancelled where it waits, and the promise that it waits for is cancelled, so that Pyjoyment cancels an async action whose connection closes before its response ends, with the request of the user agent that it waits for. The scope is cancelled in a task of the run, or at its next tick elsewhere, as between the guest ticks of the own run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l its release Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
Documentation build overview
|
Contributor
Tests
|
4 tasks done
…ease Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Tests
|
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The reactor of Trio for the cancellation of coroutines of pyjoyment/Pyjoyment#611 (pyjoyment/Pyjoyment#266): an
async defaction whose connection closes before its response ends is cancelled where it waits, with the request of the user agent that it waits for.Changes
run_coroutinereturns a function that cancels the task, with atrio.CancelScopeof its own, which takes its owntrio.Cancelledand not the one of the end of the run. The scope is cancelled in a task of the run, or at its next tick elsewhere, as between the guest ticks of the own run, as the scopes of the watchers are.awaitablecancels the promise that a task waits for, aspromise.cancel(), when the wait is cancelled.pyproject.tomltakes Pyjoyment ofmainwithtool.uv.sources, which has Pyjoyment, Pyjo.Promise: async actions and their requests are cancelled when the connection closes Pyjoyment#611 merged, so that CI tests against it; after the release of Pyjoyment it moves to the release, withdependenciesraised to it. Until then this pull request stays a draft.Validation
t/Reactor_Trio.py: the cancellation in a run of Trio and in the own run of the reactor, with the promise that the coroutine waits fort/Pyjoyment/cancel_lite_app.py, which it skipped before, withPYTHONDEVMODE=1, without aResourceWarningtrunk check, with pyright of Pyjoyment of the branch🤖 Generated with Claude Code