Viewing File: /home/ubuntu/route-and-root-frontend-base/node_modules/async-mutex/lib/SemaphoreInterface.d.ts
interface SemaphoreInterface {
acquire(): Promise<[number, SemaphoreInterface.Releaser]>;
runExclusive<T>(callback: SemaphoreInterface.Worker<T>): Promise<T>;
isLocked(): boolean;
release(): void;
}
declare namespace SemaphoreInterface {
interface Releaser {
(): void;
}
interface Worker<T> {
(value: number): Promise<T> | T;
}
}
export default SemaphoreInterface;
Back to Directory
File Manager