• anton@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    Keyword reserving is always exciting.
    In this case it’s gen, which allows iterators build on the state machines currently powering async.

    Here is a contrived use case from me.
    It’s not as groundbreaking as async but it’s a convenience. And hey, you could write futures without the async/await keywords, but it’s easier with them