Function all

  • Execute all tasks in parallel and return list of results

    Resulting task resolves when all tasks are resolved, returning list of tasks results maintaining result order In case of failure (external or internal) resulting task is immediately immediately rejected with that error and all pending tasks are canceled In case of cancelation resulting task is immediately immediately canceled together with all pending tasks

    Type Parameters

    • T

      underlying task type

    Parameters

    • tasks: Iterable<Task<T>>

      iterable of tasks to execute

    Returns Task<T[]>

    Note

    direct equivalent of Promise.all

    Retuirns

    task resolving to the list of results

Generated using TypeDoc