asyncpython

High Level APIs

Runners

This outlines high-level asyncio primitives to run asyncio code. They are built on top of an Event Loop with the aim to simplify async code usage for common wide-spread scenarios.

Coroutines

Low-level APIs

Event Loop

In cooperative multitasking, programs yield the thread to the operating system (OS) voluntarily, allowing other programs or tasks to execute. This means that a program explicitly decides to give up control of the CPU and allows the OS to schedule other tasks or programs to run

In asynchronous programming with an event loop, programs yield control to the event loop rather than the OS. The event loop is a construct provided by a framework or library (such as asyncio in Python) that manages the execution flow of asynchronous tasks. Instead of relying on the OS to schedule tasks, the event loop decides when to switch between different tasks.

Rate Limit Asyncio

Asyncio Tasks

Future

Awaitables