coopernurse / node-pool

Generic resource pooling for node.js
2.38k stars 259 forks source link

`ready` method from Pool is missing from the TS definitions (v3.8.2) #294

Open Jele0794 opened 2 years ago

Jele0794 commented 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.