3 ms·
What about `const [a, b] = await Promise.all([thing2(), thing2()])`. Or const results = await Promise.map(xs, x => process(x), { concurrency: 2 }) Or hav
by always_good 9y ago
What about `const [a, b] = await Promise.all([thing2(), thing2()])`.
Or
const results = await Promise.map(xs, x => process(x), { concurrency: 2 })
Or having 2 concurrent loops processing some data?
All things that require more boilerplate in Go while trivial in Node.