UNPKG

async-mutex

Version:
5 lines (4 loc) 324 B
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;