MCPcopy
hub / github.com/codeaashu/claude-code / lock

Function lock

src/utils/lockfile.ts:26–31  ·  view source on GitHub ↗
(
  file: string,
  options?: LockOptions,
)

Source from the content-addressed store, hash-verified

24}
25
26export function lock(
27 file: string,
28 options?: LockOptions,
29): Promise<() => Promise<void>> {
30 return getLockfile().lock(file, options)
31}
32
33export function lockSync(file: string, options?: LockOptions): () => void {
34 return getLockfile().lockSync(file, options)

Callers 1

immediateFlushHistoryFunction · 0.85

Calls 1

getLockfileFunction · 0.85

Tested by

no test coverage detected