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

5 lines
344 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 withTimeout(mutex: MutexInterface, timeout: number, timeoutError?: Error): MutexInterface;
export declare function withTimeout(semaphore: SemaphoreInterface, timeout: number, timeoutError?: Error): SemaphoreInterface;