Function
locked
(fx: Effect.Effect<A, E, R>)
Source from the content-addressed store, hash-verified
| 163 | const read = (file: string) => fs.readFileString(file).pipe(Effect.catch(() => Effect.succeed(""))) |
| 164 | const remove = (file: string) => fs.remove(file).pipe(Effect.catch(() => Effect.void)) |
| 165 | const locked = <A, E, R>(fx: Effect.Effect<A, E, R>) => lock(state.gitdir).withPermits(1)(fx) |
| 166 | |
| 167 | const enabled = Effect.fnUntraced(function* () { |
| 168 | if (state.vcs !== "git") return false |
Tested by
no test coverage detected