13 lines
272 B
Plaintext
13 lines
272 B
Plaintext
//#region src/utils/concurrent.d.ts
|
|
/**
|
|
* @module
|
|
* Concurrent utility.
|
|
*/
|
|
export interface Pool {
|
|
run<T>(fn: () => T): Promise<T>;
|
|
}
|
|
export declare const createPool: ({ concurrency, interval }?: {
|
|
concurrency?: number;
|
|
interval?: number;
|
|
}) => Pool;
|
|
//#endregion |