site/node_modules/async-mutex/lib/tryAcquire.d.ts

5 lines
324 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
import MutexInterface from './MutexInterface';
import SemaphoreInterface from './SemaphoreInterface';
export declare function tryAcquire(mutex: MutexInterface, alreadyAcquiredError?: Error): MutexInterface;
export declare function tryAcquire(semaphore: SemaphoreInterface, alreadyAcquiredError?: Error): SemaphoreInterface;