Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.5k
Star
77.3k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Doc
library
asyncio-task.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 20, 2026
gh-157786: Document that asyncio does not support generator-based coroutines (#157787)
deadlovelll
authored
539e85a
View commit details
Copy full SHA for 539e85a
View code at this point
Browse repository at this point
Commits on Aug 30, 2026
gh-156662: Note that TaskGroup.create_task() raises RuntimeError (#156663)
deadlovelll
authored
26d9b25
View commit details
Copy full SHA for 26d9b25
View code at this point
Browse repository at this point
Commits on Aug 21, 2026
gh-116048: restructure task group docs and add docs for eager execution (#156102)
kumaraditya303
authored
862befd
View commit details
Copy full SHA for 862befd
View code at this point
Browse repository at this point
Commits on Aug 18, 2026
gh-155894: Fix asyncio.wait_for() docs claiming a coroutine is wrapped in a Task (#155895)
deadlovelll
authored
05ab13e
View commit details
Copy full SHA for 05ab13e
View code at this point
Browse repository at this point
Commits on Aug 10, 2026
Make non-positional-only argument names match runtime declaration in `asyncio.tasks` function reference (#155282)
jonathandung
authored
53317fd
View commit details
Copy full SHA for 53317fd
View code at this point
Browse repository at this point
Commits on Aug 4, 2026
gh-104091: Suggest TaskGroup for running background tasks in asyncio.create_task() docs (#155133)
kumaraditya303
authored
36250a9
View commit details
Copy full SHA for 36250a9
View code at this point
Browse repository at this point
Commits on Jul 29, 2026
gh-135736: Fix interaction between TaskGroup and aclose() (#154649)
Show description for 49f9667
msullivan
authored
49f9667
View commit details
Copy full SHA for 49f9667
View code at this point
Browse repository at this point
Commits on Jul 18, 2026
Fix duplicated words in the 'Coroutines and tasks' documentation (#153880)
michaelbnewman
authored
cffcee4
View commit details
Copy full SHA for cffcee4
View code at this point
Browse repository at this point
Commits on Jul 12, 2026
gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_completed() (#153616)
kumaraditya303
authored
dd2faeb
View commit details
Copy full SHA for dd2faeb
View code at this point
Browse repository at this point
Commits on Jun 2, 2026
gh-150319: Replace all documentation which says "See PEP 585" (#150325)
Show description for 50fe49c
4 people
authored
50fe49c
View commit details
Copy full SHA for 50fe49c
View code at this point
Browse repository at this point
Commits on May 7, 2026
Python 3.15.0b1
hugovk
committed
f31a89b
View commit details
Copy full SHA for f31a89b
View code at this point
Browse repository at this point
Commits on Apr 28, 2026
gh-108951: document addition of TaskGroup.cancel() (#149031)
Show description for 8a8d737
3 people
authored
8a8d737
View commit details
Copy full SHA for 8a8d737
View code at this point
Browse repository at this point
Commits on Apr 24, 2026
gh-108951: add TaskGroup.cancel() (#127214)
Show description for 95559d2
4 people
authored
95559d2
View commit details
Copy full SHA for 95559d2
View code at this point
Browse repository at this point
Commits on Mar 21, 2026
Docs: replace all `datetime` imports with `import datetime as dt` (#145640)
hugovk
authored
83360b5
View commit details
Copy full SHA for 83360b5
View code at this point
Browse repository at this point
Commits on Mar 16, 2026
Docs: remove unmatched parenthesis for `asyncio.TaskGroup` note (#146035)
trag1c
authored
4e96282
View commit details
Copy full SHA for 4e96282
View code at this point
Browse repository at this point
Commits on Feb 7, 2026
gh-142044: Add note to prefer `asyncio.timeout[_at]` over `asyncio.Timeout` (#144449)
kovan
authored
0e7c06a
View commit details
Copy full SHA for 0e7c06a
View code at this point
Browse repository at this point
Commits on Nov 9, 2025
gh-141186: document `asyncio.Task` cancellation propagation behavior (#141249)
mohsinm-dev
authored
b36f01d
View commit details
Copy full SHA for b36f01d
View code at this point
Browse repository at this point
Commits on Aug 9, 2025
gh-137026: Add an explainer guide for asyncio (GH-137215)
Show description for 3964f97
6 people
authored
3964f97
View commit details
Copy full SHA for 3964f97
View code at this point
Browse repository at this point
Commits on May 22, 2025
gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio.create_task (#134202)
graingert
authored
a3d0306
View commit details
Copy full SHA for a3d0306
View code at this point
Browse repository at this point
Commits on Apr 13, 2025
gh-132354: document return value for `asyncio.Task.cancel` (#132374)
felixscherz
authored
64b066a
View commit details
Copy full SHA for 64b066a
View code at this point
Browse repository at this point
Commits on Feb 22, 2025
gh-121970: Replace `.. coroutine{method,function}` with `:async:` (#130448)
Show description for 5ec4bf8
sobolevn
and
AA-Turner
authored
5ec4bf8
View commit details
Copy full SHA for 5ec4bf8
View code at this point
Browse repository at this point
Commits on Dec 29, 2024
expand the `asyncio.run_coroutine_threadsafe` recipes (#127576)
Show description for c9159b7
graingert
and
kumaraditya303
authored
c9159b7
View commit details
Copy full SHA for c9159b7
View code at this point
Browse repository at this point
Commits on Oct 12, 2024
gh-125289: Update sample code in asyncio-task.rst (GH-125292)
Show description for fa52b82
galmyk
and
willingc
authored
fa52b82
View commit details
Copy full SHA for fa52b82
View code at this point
Browse repository at this point
Commits on Sep 11, 2024
gh-108951: Document how to terminate an asyncio.TaskGroup (#123837)
Show description for ef05801
picnixz
authored
ef05801
View commit details
Copy full SHA for ef05801
View code at this point
Browse repository at this point
Commits on Jul 22, 2024
Docs: spelling and grammar fixes (#122084)
Show description for bc264ea
3 people
authored
bc264ea
View commit details
Copy full SHA for bc264ea
View code at this point
Browse repository at this point
Commits on May 8, 2024
Format None, True, False and NotImplemented as literals (GH-118758)
serhiy-storchaka
authored
05c2fe1
View commit details
Copy full SHA for 05c2fe1
View code at this point
Browse repository at this point
Commits on May 6, 2024
Fix typo in Doc/library/asyncio-task.rst (GH-118627)
xyb
authored
fc50f1b
View commit details
Copy full SHA for fc50f1b
View code at this point
Browse repository at this point
Commits on Apr 9, 2024
gh-116720: Fix corner cases of taskgroups (#117407)
Show description for fa58e75
gvanrossum
and
Tinche
authored
fa58e75
View commit details
Copy full SHA for fa58e75
View code at this point
Browse repository at this point
Commits on Apr 1, 2024
gh-77714: Provide an async iterator version of as_completed (GH-22491)
Show description for c741ad3
3 people
authored
c741ad3
View commit details
Copy full SHA for c741ad3
View code at this point
Browse repository at this point
Commits on Mar 6, 2024
gh-115957: Close coroutine if TaskGroup.create_task() raises an error (#116009)
Jason-Y-Z
authored
ce0ae1d
View commit details
Copy full SHA for ce0ae1d
View code at this point
Browse repository at this point
Commits on Jan 24, 2024
gh-101100: Fix sphinx warnings in `asyncio-task.rst` (#114469)
Show description for 1e4f00e
sobolevn
and
serhiy-storchaka
authored
1e4f00e
View commit details
Copy full SHA for 1e4f00e
View code at this point
Browse repository at this point
Commits on Oct 24, 2023
Revert "Fix a code snippet typo in asyncio docs (#108427)" (GH-111271)
Show description for c7d68f9
zware
authored
c7d68f9
View commit details
Copy full SHA for c7d68f9
View code at this point
Browse repository at this point
Commits on Oct 13, 2023
gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818)
Show description for f81e36f
paskozdilar
and
kumaraditya303
authored
f81e36f
View commit details
Copy full SHA for f81e36f
View code at this point
Browse repository at this point
Commits on Aug 24, 2023
Fix a code snippet typo in asyncio docs (#108427)
Dumeng
authored
7f31676
View commit details
Copy full SHA for 7f31676
View code at this point
Browse repository at this point
Commits on Aug 19, 2023
gh-107980: fix doc role for asyncio.timeouts (#108126)
Tinche
authored
a47c13c
View commit details
Copy full SHA for a47c13c
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.