loccon
Version:
A simple local context storage and management tool with CLI and web interfaces. Store, search, and organize code snippets, notes, and development contexts with sharded JSON storage.
12 lines • 374 B
TypeScript
export declare class FileLock {
private lockPath;
private lockTimeout;
private acquired;
constructor(storagePath: string, lockTimeout?: number);
acquire(): Promise<void>;
release(): Promise<void>;
private isStale;
private forceRelease;
static cleanupStaleLocks(storagePath: string): Promise<void>;
}
//# sourceMappingURL=filelock.d.ts.map