Why not just use a combination of `async`/`await` and `.then`?

```javascript
async function initialize() {
    const [foo, bar, baz] = await Promise.all([
        request('foo.json').then(t => t.data),
        request('bar.json').then(t => t.data),
        request('baz.json').then(t => t.data),
    ]);
    render(foo, bar, baz);
}
```
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to