UNPKG

@dfinity/assets

Version:

JavaScript and TypeScript library to manage assets on the Internet Computer

7 lines (6 loc) 295 B
/** * Minimal promise executor with concurrency limit implementation * @param concurrency Maximum number of promises executed concurrently */ export declare const limit: (concurrency: number) => <T>(fn: () => Promise<T>) => Promise<T>; export declare type LimitFn = ReturnType<typeof limit>;