Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
bpo-46752: Introduce task groups in asyncio#31270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
24 commits Select commitHold shift + click to select a range
7edee0b
Integrate task groups from EdgeDb
gvanrossumf495375
Make test_taskgroups.py run and pass
gvanrossuma87275a
Rename taskgroup to taskgroups in the test code
gvanrossum4df0acc
Export TaskGroup from asyncio; remove __future__ import
gvanrossum56db921
Only keep the newest _is_base_error() and _task_cancel()
gvanrossum500581e
Get rid of MultiError in favor of ExceptionGroup
gvanrossum4843e94
Add TaskGroupError to __all__
gvanrossum63e712d
Avoid DeprecationWarning: There is no current event loop
gvanrossumd233dd1
Prevent warning "test altered the execution environment"
gvanrossumaf574d5
Get rid of custom TaskGroupError
gvanrossum299f366
Update comments explaining why test 21 doesn't work
gvanrossum9de3c87
Add tests showing that 'plain' BaseExceptions work
gvanrossum0e1355d
Allow creating new tasks while __aexit__ is waiting
gvanrossum77ec0e4
Add an API to Task to manage 'cancel_requested' flag
gvanrossum17b64b5
Add tests for .cancelling() and .uncancel()
gvanrossum5e3f4b9
Merge remote-tracking branch 'origin/main' into taskgroups
gvanrossum0b9bccd
📜🤖 Added by blurb_it.
blurb-it[bot]137ebe6
Replace EdgeDb copyright with a simpler attribution
gvanrossumf693c1c
Use task.cancelling() in task repr instead of access to private attri…
asvetlovb83734c
Change the internal imports
gvanrossumde3d820
Avoid needing self.loop in test
gvanrossum9712241
Make test 14 more robust
gvanrossumb3d4d18
Update Lib/asyncio/taskgroups.py
1st1c1e5d64
Update Lib/test/test_asyncio/test_taskgroups.py
1st1File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add TaskGroupError to __all__
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit4843e94dfc00350de44e0612e704a63dcd162c97
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -17,7 +17,7 @@ | ||
# | ||
__all__ = ["TaskGroup", "TaskGroupError"] | ||
import asyncio | ||
gvanrossum marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
import itertools | ||
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.