MCPcopy Create free account
hub / github.com/anomalyco/opencode / lock

Function lock

packages/core/test/util/flock.test.ts:35–37  ·  view source on GitHub ↗
(dir: string, key: string)

Source from the content-addressed store, hash-verified

33}
34
35function lock(dir: string, key: string) {
36 return path.join(dir, Hash.fast(key) + ".lock")
37}
38
39function sleep(ms: number) {
40 return new Promise<void>((resolve) => {

Callers 1

flock.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected