Expected errors and Promise.all

added by JavaScript Kicks
1/15/2019 1:20:23 PM

331 Views

Promise.all is a great ES6 feature, which makes it remarkably easy to combine together multiple promises. Things, however, might get a little bit tricky, when not all the promises fed into Promise.all are expected to succeed. Consider the case of design documents when starting up PouchDB.


0 comments