← All notes

asyncio: concurrent code with async/await

asyncio is a library to write concurrent code using the async/await syntax. [S1]

What asyncio is

asyncio is a library to write concurrent code using the async/await syntax. [S1]

asyncio is used as a foundation for multiple Python asynchronous frameworks. [S1]

Tasks

create_task() function to run coroutines concurrently as asyncio Tasks. [S2]

TaskGroup class provides a more modern alternative to create_task(). [S2]

Claims

Sources

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, asyncio — Asynchronous I/O, PSF License Version 2; Python Software Foundation, Coroutines and Tasks, PSF License Version 2.

Cite this

Permanent ID: iil:note:8n1xhqp6

iinventedlight. 2026. "asyncio: concurrent code with async/await." iinventedlight Library, iil:note:8n1xhqp6, version of 2026-11-06. https://iinventedlight.com/library/notes/python-asyncio-basics/. License: CC-BY-4.0.

@misc{iil_note_8n1xhqp6,
  author = {{iinventedlight}},
  title = {{asyncio: concurrent code with async/await}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-06},
  url = {https://iinventedlight.com/library/notes/python-asyncio-basics/},
  note = {Permanent ID iil:note:8n1xhqp6. License: CC-BY-4.0.},
}

Markdown

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-basics.md.