CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
Mutex.d.ts13 linesDownload Raw Back to lib
1import MutexInterface from './MutexInterface';2declare class Mutex implements MutexInterface {3    constructor(cancelError?: Error);4    acquire(priority?: number): Promise<MutexInterface.Releaser>;5    runExclusive<T>(callback: MutexInterface.Worker<T>, priority?: number): Promise<T>;6    isLocked(): boolean;7    waitForUnlock(priority?: number): Promise<void>;8    release(): void;9    cancel(): void;10    private _semaphore;11}12export default Mutex;13 
basant307/AI_Governance_Project · CoolFace