UNPKG

@daisugi/kintsugi

Version:

Kintsugi is a set of utilities to help build a fault tolerant services.

10 lines 388 B
import type { AsyncFn } from './types.js'; interface WithPoolOpts { concurrencyCount?: number; } export declare function createWithPool(opts?: WithPoolOpts): { withPool(fn: AsyncFn): (...args: any[]) => Promise<unknown>; }; export declare function withPool(fn: AsyncFn, opts?: WithPoolOpts): (...args: any[]) => Promise<unknown>; export {}; //# sourceMappingURL=with_pool.d.ts.map