pool.d.ts 244 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 declare type Task<T> = (done: () => void) => Promise<T>; interface Pool { submit<T>(task: Task<T>): Promise<T>; size: number; readonly pending: number; } declare function createPool(size: number): Pool; export { Pool, createPool };