MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / lock

Function lock

source code/utils/lockfile.ts:28–33  ·  view source on GitHub ↗
(
  file: string,
  options?: LockOptions,
)

Source from the content-addressed store, hash-verified

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

Callers 1

immediateFlushHistoryFunction · 0.85

Calls 1

getLockfileFunction · 0.85

Tested by

no test coverage detected