import { PromisePoolError } from './promise-pool-error'; export interface ReturnValue { /** * 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>; }