Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
35
function
lock(dir: string, key: string) {
36
return
path.join(dir, Hash.fast(key) +
".lock"
)
37
}
38
39
function
sleep(ms: number) {
40
return
new
Promise<void>((resolve) => {
Callers
1
flock.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected