Collect an array of results into a single result. Succeeds with all values if every input is ok; otherwise short-circuits on the first err encountered.
ok
err
const users = all([loadUser("u-1"), loadUser("u-2"), loadUser("u-3")]) // ok([user1, user2, user3]) — or the first err Copy
const users = all([loadUser("u-1"), loadUser("u-2"), loadUser("u-3")]) // ok([user1, user2, user3]) — or the first err
Collect an array of results into a single result. Succeeds with all values if every input is
ok; otherwise short-circuits on the firsterrencountered.