Tag

run_in_executor

1 views collected around this technical thread.

360 Quality & Efficiency
360 Quality & Efficiency
Jul 5, 2019 · Backend Development

Understanding Python asyncio: Coroutines, Event Loop, Tasks, and Concurrency

This article explains how Python's asyncio library enables asynchronous programming by defining coroutine functions with async/await, managing execution with an event loop, coordinating multiple tasks using gather, wait, and ensure_future, and integrating synchronous code via executors for concurrent execution.

AsyncIOConcurrencycoroutine
0 likes · 11 min read
Understanding Python asyncio: Coroutines, Event Loop, Tasks, and Concurrency