MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / tryAcquire

Function tryAcquire

apps/cli/src/daemon-state.ts:334–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 );
333
334 const tryAcquire = () =>
335 fs.writeFileString(lockPath, `${lockPayload}\n`, { flag: "wx" }).pipe(
336 Effect.as(true),
337 Effect.catchCause(() => Effect.succeed(false)),
338 );
339
340 if (yield* tryAcquire()) {
341 return {

Callers 1

acquireDaemonStartLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected