Andrey (azangru) wrote,
Andrey
azangru

Achievement unlocked: today, for the first time, I wrote an asynchronous iterator. Using an async generator (also for the first time; I never felt a need for them before), nothing as fancy as writing it completely from scratch as an object with Symbol.asyncIterator. I wanted to transform an array of strings into a chain of sequentially executed promises. Previously, I would have used a .reduce starting with a Promise.resolve(). But this time, I tried the async generator syntax, and it seems to have worked beautifully.
Subscribe

  • (no subject)

    (retweeted by a developer) How does she interpret what she has highlighted — "unlawful blocking of a public street" — as "pedestrians whose…

  • (no subject)

    Google has finally become ready to promote its Lit ecosystem properly. I thought they were going make their announcements at the coming Google IO;…

  • (no subject)

    Is it ... Bill Maher? Is he, in the penetrating eyes of this insightful lady, the emblem of white supremacy now? The comments to the tweet say it…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments