Await every ResultAsync in parallel and collect the values. Resolves with ok([...]) if all succeed, or the first err encountered in input order. All input promises are started immediately.
ok([...])
err
const users = await all([fetchUser("u-1"), fetchUser("u-2"), fetchUser("u-3")]) Copy
const users = await all([fetchUser("u-1"), fetchUser("u-2"), fetchUser("u-3")])
Await every ResultAsync in parallel and collect the values. Resolves with
ok([...])if all succeed, or the firsterrencountered in input order. All input promises are started immediately.