UNPKG

@supercharge/promise-pool

Version:

Map-like, concurrent promise processing for Node.js

14 lines (13 loc) 449 B
import { PromisePoolError } from './promise-pool-error'; export interface ReturnValue<T, R, E = any> { /** * The list of results returned by the processing function. */ results: R[]; /** * The list of errors that occurred while processing all items in the pool. * Each error contains the error-causing item at `error.item` as a * reference for re-processing. */ errors: Array<PromisePoolError<T, E>>; }