astro-ghostcms/.pnpm-store/v3/files/3a/89cbe2d308652b3c2af1ee3ee44...

11 lines
272 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
export declare class Semaphore<T = void> {
private _capacity;
private _active;
private _waiting;
constructor(capacity?: number);
lock(thunk: () => T | PromiseLike<T>): Promise<T>;
get active(): number;
private runNext;
private doRunNext;
}