Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jele0794 opened this issue Apr 28, 2022 · 0 comments
Open

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

Jele0794 opened this issue Apr 28, 2022 · 0 comments

Comments

@Jele0794
Copy link

Jele0794 commented Apr 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant