hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
12 lines • 424 B
TypeScript
export declare class MultiProcessMutex {
private _mutexFilePath;
private _mutexLifespanInMs;
constructor(mutexName: string, maxMutexLifespanInMs?: number);
use<T>(f: () => Promise<T>): Promise<T>;
private _tryToAcquireMutex;
private _executeFunctionAndReleaseMutex;
private _isMutexFileTooOld;
private _deleteMutexFile;
private _waitMs;
}
//# sourceMappingURL=multi-process-mutex.d.ts.map