UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

9 lines (8 loc) 322 B
/** * Run async tasks with a limited number of tasks running concurrently, * for example to avoid hitting AWS API rate limits. * @param tasks * @param limit * @returns results in the same order as the tasks */ export declare function runWithConcurrency<T>(tasks: (() => Promise<T>)[], limit?: number): Promise<T[]>;