Skip to main content Brad's PyNotes

Posts on Async

  1. PEP 525 - Asynchronous Generators

    TL;DR

    PEP 525 introduced asynchronous generators to Python 3.6, enabling functions that combine async def with yield statements. This feature simplifies creating asynchronous data sources by replacing verbose iterator classes with concise generator syntax, delivering approximately 2.3x better performance.

  2. PEP 492 Async Await

    TL;DR

    PEP 492 introduced async def and await keywords, creating native coroutines that make asynchronous programming cleaner and more intuitive than generator-based approaches.