Echo JS 0.11.0

<~>
tracker1 3107 days ago. link 1 point
Man, promises + async/await is so much cleaner...

    async function doStuffInSeries() {
      var r1 = await doThing1();
      var r2 = await doThing2();
      if (r2) {
        await doThing3();
      }
      return {r1,r2};
    }

Much easier to follow than the module in question.. also not sure what it really offers over the `async` package, beyond somewhat smaller footprint.

Replies