UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

12 lines • 781 B
/** * Shares the existing O_EXCL file with synchronous migrators without blocking the event loop: waiting is * asynchronous, but the lock is taken, used by `critical` and released in one synchronous step. A lock held * across an await would let a synchronous reader in the same process spin on it with the event loop blocked, * so the holder could never release it and every caller froze until the lock went stale (senpi#3546). */ export declare function withLegacyLock<T>(path: string, stale: number, critical: () => T): Promise<T>; /** Thrown when the lock itself cannot be taken; errors from the critical section propagate unchanged. */ export declare class LegacyLockAcquireError extends Error { constructor(cause: unknown); } //# sourceMappingURL=legacy-lock.d.ts.map