()
| 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 { |
no outgoing calls
no test coverage detected