asyncio.CancelledError
Signals cancellation at an await point so a coroutine can clean up before propagating cancellation.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Signals cancellation at an await point so a coroutine can clean up before propagating cancellation.
Schedules a coroutine as a task in the running event loop and returns a handle to its result.
Shares a Boolean signal between coroutines; waiting tasks resume when the signal is set.
Represents one eventual result or exception that can be awaited by multiple callers.
Runs awaitables concurrently and collects their results in input order.
Allows only one coroutine at a time into a critical section guarded by the same asynchronous lock.
Provides first-in, first-out handoff between asynchronous producers and consumers.
Creates and manages an event loop for a top-level asynchronous computation and returns its result.
Restricts concurrent access using a counter of available permits.
Protects an underlying task from cancellation requested through the shielding awaitable.
Suspends the current task for a delay and optionally supplies a result when it resumes.
Wraps a coroutine in a scheduled awaitable with result, status and cancellation controls.
Manages related asynchronous tasks in a scope that waits for every member when it exits.
Applies a deadline to awaits inside an asynchronous context manager.
Waits for a collection of tasks and returns separate sets of finished and pending tasks.
Awaits one operation with a timeout and returns its result on success.
Searches layered mappings from first to last, using the first available binding.
Maps hashable observations to their counts, including explicitly stored zero or negative counts.
Creates a missing value by calling the factory when a key is accessed by subscription.
Maintains efficient insertions and removals at both ends of a double-ended queue.
Generates a tuple subclass with named fields and positional tuple behavior.
Maintains ordered key-value bindings and supports moving a key explicitly to either end.
Provides an asynchronous context-manager base with a default entry method returning the manager itself.
Supplies the context-manager entry protocol and returns the manager itself by default.