Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
TypeScript
123456789101112131415export type LockResult = | { readonly acquired: true } | { readonly acquired: false; readonly held: true } | { readonly acquired: false; readonly held: false; readonly code: number }
// workerd has no FFI and no cross-process file locking; a Durable Object is// already single-threaded per instance, so nothing on this runtime should// reach these.const unavailable = (_fd: number): LockResult => { throw new Error("Process locks are unavailable on the workerd runtime")}
export const lockDarwin = unavailableexport const lockLinux = unavailable