UNPKG

ravendb

Version:
11 lines 452 B
import { IDisposable } from "../Types/Contracts.js"; import { Semaphore } from "./Semaphore.js"; export interface AcquireSemaphoreOptions { timeout?: number; contextName?: string; } export interface SemaphoreAcquisitionContext extends IDisposable { promise: Promise<void>; } export declare function acquireSemaphore(sem: Semaphore, semOpts?: AcquireSemaphoreOptions): SemaphoreAcquisitionContext; //# sourceMappingURL=SemaphoreUtil.d.ts.map