import { all } from "https://deno.land/x/effection@3.0.0-beta.3/lib/mod.ts";
Block and wait for all of the given operations to complete. Returns an array of values that the given operations evaluated to. This has the same purpose as Promise.all.
If any of the operations become errored, then all
will also become errored.
Example
import { all, expect, main } from 'effection';
await main(function*() {
let [google, bing] = yield* all([
expect(fetch('http://google.com')),
expect(fetch('http://bing.com')),
]);
// ...
});
Type Parameters
T extends Operation<any>[]
Parameters
ops: T
a list of operations to wait for