Articles

Async IO in Python: A Complete Walkthrough

Real Python Python

One of the more patient walkthroughs of Python's asyncio I've come across, building up from coroutines and the event loop to real async/await usage instead of just showing a toy example and moving on. Real Python's usual strength shows here: it doesn't skip the parts that actually confuse people, like why you can't just sprinkle "async" on a function and expect concurrency for free, or what happens when you forget to await something. Good to have on hand the next time someone on the team asks "wait, is this actually running concurrently or not."

Read the full article ↗

← Back to all articles