@pleisto/active-support
    Preparing search index...

    Variable parallelConst

    parallel: <T, K>(
        limit: number,
        array: readonly T[],
        func: (item: T) => Promise<K>,
    ) => Promise<K[]>

    Executes many async functions in parallel. Returns the results from all functions as an array. After all functions have resolved, if any errors were thrown, they are rethrown in an instance of AggregateError

    Type declaration

      • <T, K>(
            limit: number,
            array: readonly T[],
            func: (item: T) => Promise<K>,
        ): Promise<K[]>
      • Type Parameters

        • T
        • K

        Parameters

        • limit: number
        • array: readonly T[]
        • func: (item: T) => Promise<K>

        Returns Promise<K[]>