News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by esprehn on Wednesday September 25, 2019 @12:45AM (#21067676)
Is there a bug in your example? You await freeze before calling whip. They can't run in any order or in parallel and must complete sequentially. pour also cannot complete before whip since whip is being awaited.

That example is:

    const foo = async () =>
      freeze(water)
        .then(ice => whip(cream)
          .then(wCream => pour(liquor, ice)
            .then(base => put(base, cream)
              .then(cocktail => cocktail.serve()))));
Re:V8 adds support for top-level await by nine_k on Wednesday September 25, 2019 @10:29AM (#21071106)
Thanks. I stand corrected.