Low-level API Index¶
This page lists all low-level asyncio APIs.
Obtaining the Event Loop¶
The preferred function to get the running event loop. |
|
Get an event loop instance (running or current via the current policy). |
|
Set the event loop as current via the current policy. |
|
Create a new event loop. |
Examples
Event Loop Methods¶
See also the main documentation section about the Event Loop Methods.
Lifecycle
Run a Future/Task/awaitable until complete. |
|
Run the event loop forever. |
|
Stop the event loop. |
|
Close the event loop. |
|
Return |
|
Return |
|
Close asynchronous generators. |
Debugging
Enable or disable the debug mode. |
|
Get the current debug mode. |
Scheduling Callbacks
Invoke a callback soon. |
|
A thread-safe variant of |
|
Invoke a callback after the given time. |
|
Invoke a callback at the given time. |
Thread/Process Pool
|
Run a CPU-bound or other blocking function in
a |
Set the default executor for |
Tasks and Futures