Awaitables, Tasks, and TaskGroup
An awaitable object can be used in an await expression. [S1]
Awaitables and tasks
awaitable object if it can be used in an await expression. [S1]
create_task() function to run coroutines concurrently as asyncio Tasks. [S1]
TaskGroup class provides a more modern alternative to create_task(). [S1]
Library role
asyncio is a library to write concurrent code using the async/await syntax. [S2]
Claims
- id: C1 claim: Awaitables work in await expressions. source: S1 evidence: "awaitable object if it can be used in an await expression"
- id: C2 claim: create_task runs concurrent Tasks. source: S1 evidence: "create_task() function to run coroutines concurrently as asyncio Tasks"
- id: C3 claim: TaskGroup alternatives create_task. source: S1 evidence: "TaskGroup class provides a more modern alternative to create_task()"
- id: C4 claim: asyncio uses async/await syntax. source: S2 evidence: "asyncio is a library to write concurrent code using the async/await syntax."
Sources
- [S1] Coroutines and Tasks. Python Software Foundation. https://docs.python.org/3/library/asyncio-task.html . License: PSF License Version 2. Accessed 2026-11-06.
- [S2] asyncio — Asynchronous I/O. Python Software Foundation. https://docs.python.org/3/library/asyncio.html . License: PSF License Version 2. Accessed 2026-11-06.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Source: Python Software Foundation (Python 3 docs). PSF License Version 2 (https://docs.python.org/3/license.html).
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, Coroutines and Tasks, PSF License Version 2; Python Software Foundation, asyncio — Asynchronous I/O, PSF License Version 2.
Cite this
iinventedlight. 2026. "Awaitables, Tasks, and TaskGroup." iinventedlight Library, iil:note:9eq7xnqt, version of 2026-11-06. https://iinventedlight.com/library/notes/python-asyncio-awaitables/. License: CC-BY-4.0.
@misc{iil_note_9eq7xnqt,
author = {{iinventedlight}},
title = {{Awaitables, Tasks, and TaskGroup}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-06},
url = {https://iinventedlight.com/library/notes/python-asyncio-awaitables/},
note = {Permanent ID iil:note:9eq7xnqt. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.
For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/python-asyncio-awaitables.md.