Open Jele0794 opened 2 years ago
These are the Pool class definitions:
export class Pool<T> extends EventEmitter { spareResourceCapacity: number; size: number; available: number; borrowed: number; pending: number; max: number; min: number; start(): void; acquire(priority?: number): Promise<T>; release(resource: T): Promise<void>; destroy(resource: T): Promise<void>; drain(): Promise<void>; clear(): Promise<void>; use<U>(cb: (resource: T) => U | Promise<U>): Promise<U>; isBorrowedResource(resource: T): boolean; }
I wanted to add it, but I am not sure what is the process.
These are the Pool class definitions:
I wanted to add it, but I am not sure what is the process.