asyncio
Stdlib — ConcurrencyPython 3.4+Advanced
Async I/O: event loop, coroutines, tasks, streams, queues
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.4+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import asyncio print(f"Module: asyncio") print(f"Contents: {dir(asyncio)[:10]}")
The asyncio module is part of Python's standard library. Async I/O: event loop, coroutines, tasks, streams, queues.
Try in PlaygroundTags
stdlibasyncconcurrencyevent-loopnetworking
Related Items
async
Keyword
Declares an asynchronous coroutine function or context manager
await
Keyword
Pauses execution of an async coroutine until a result is available
threading
Stdlib — Concurrency
Thread-based parallelism: Thread, Lock, RLock, Semaphore, Event, Condition
multiprocessing
Stdlib — Concurrency
Process-based parallelism: Process, Pool, Queue, shared memory
aiohttp
Package — Web Framework
Async HTTP client/server framework on asyncio
uvloop
Package — Server
Ultra-fast asyncio event loop replacement (libuv-based)