
asyncio.to_thread: Stop Freezing Your Event Loop
One blocking call inside an async function can freeze every coroutine on your event loop. This post shows how asyncio.to_thread hands that w...
Subscribe to Emma Clements's Newsletter
Get new articles and engineering posts delivered to your inbox.

One blocking call inside an async function can freeze every coroutine on your event loop. This post shows how asyncio.to_thread hands that w...

Build a B+ tree from scratch in Python, test its invariants, and compare its behavior with SQLite. Learn why indexes speed up lookups, how c...