dieumercimvemba's picture
download
raw
479 Bytes
interface MutexInterface {
acquire(priority?: number): Promise<MutexInterface.Releaser>;
runExclusive<T>(callback: MutexInterface.Worker<T>, priority?: number): Promise<T>;
waitForUnlock(priority?: number): Promise<void>;
isLocked(): boolean;
release(): void;
cancel(): void;
}
declare namespace MutexInterface {
interface Releaser {
(): void;
}
interface Worker<T> {
(): Promise<T> | T;
}
}
export default MutexInterface;

Xet Storage Details

Size:
479 Bytes
·
Xet hash:
65e3c76aeb4a3f7ec87bc82111a67640152073ba05aad3e2d0bc6a048ff7d71f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.