method Task.all
Task.all<
T,
E,
>
(tasks: Task<T, E>[]): Task<T[], E>

Runs multiple tasks and collects results. Rejects on the first failure.

Type Parameters

Parameters

tasks: Task<T, E>[]

Return Type

Task<T[], E>

Usage

import { Task } from ".";