Files
CreaBook/node_modules/async-mutex/lib/tryAcquire.d.ts
2026-04-05 03:08:53 +02:00

5 lines
324 B
TypeScript

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;