8 ms·
Note that this won't work concurrently if the promises are some kind of "lazy" promise implementation that executes the operation only when `.then` is called. L
by vimslayer 7y ago
Note that this won't work concurrently if the promises are some kind of "lazy" promise implementation that executes the operation only when `.then` is called. Like with Knex, for example. I prefer
const [a, b] = await Promise.all([promiseA, promiseB])