Good call, Dmitry. Async IIFEs are also useful to parallelize different
sequences of async operations. E.g.:

```js
async function main() {
  await* [
    (async () => await seq1op2(await seq1op1()))(),
    (async () => {
      await seq2op1();
      await seq2op2();
    })(),
  ];
}
```

Here is a more solid example
<https://github.com/JSRocksHQ/harmonic/blob/81979aee6c8c9ca981a69d694e0fe025ad7d1669/src/bin/core.js#L23-L37>
.

/fm
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to