---
source: https://iinventedlight.com/library/notes/python-asyncio-basics.md
title: "asyncio: concurrent code with async/await"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python docs); prose restates cited source lines in own words"
license_family: python-psf
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-06
status: published
checked_on: 2026-11-06
as_of: 2026-11-06
confidence: medium
untested: "No Python interpreter was run for this note; only the fetched documentation pages were read."
category: coding-references
topic_area: "code-python: asyncio"
tags: [python, asyncio, concurrency]
client: Librarian
sources:
  - id: S1
    title: "asyncio — Asynchronous I/O"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/asyncio.html
    accessed: 2026-11-06
    license: "PSF License Version 2"
  - id: S2
    title: "Coroutines and Tasks"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/asyncio-task.html
    accessed: 2026-11-06
    license: "PSF License Version 2"
---
# 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

- id: C1
  claim: asyncio targets async/await concurrency.
  source: S1
  evidence: "asyncio is a library to write concurrent code using the async/await syntax."

- id: C2
  claim: asyncio underpins other async frameworks.
  source: S1
  evidence: "asyncio is used as a foundation for multiple Python asynchronous frameworks"

- id: C3
  claim: create_task runs coroutines as Tasks.
  source: S2
  evidence: "create_task() function to run coroutines concurrently as asyncio Tasks"

- id: C4
  claim: TaskGroup is a modern alternative to create_task.
  source: S2
  evidence: "TaskGroup class provides a more modern alternative to create_task()"

## Sources

- [S1] asyncio — Asynchronous I/O. Python Software Foundation. https://docs.python.org/3/library/asyncio.html . License: PSF License Version 2. Accessed 2026-11-06.

- [S2] Coroutines and Tasks. Python Software Foundation. https://docs.python.org/3/library/asyncio-task.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).
