kjelsrud.dev/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts

11 lines
272 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02: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;
}