UNPKG

budgie-cli

Version:
10 lines (9 loc) 464 B
export declare type IActionCreator = () => Promise<void>; /** * Creates and runs Promises similarly to Promise.all, but with a limit to concurrent operations. * * @param creators Creates Promises to be run. * @param limit Limit to concurrent promises to be run. * @returns Promise for all operations to have resolved or rejected. */ export declare const queueAsyncActions: (creators: readonly IActionCreator[], limit?: number) => Promise<void>;