MCPcopy Create free account
hub / github.com/Effect-TS/effect / withLock

Function withLock

packages/effect/src/unstable/eventlog/SqlEventJournal.ts:276–281  ·  view source on GitHub ↗
(_storeId)

Source from the content-addressed store, hash-verified

274 Effect.mapError((cause) => new EventJournal.EventJournalError({ cause, method: "destroy" }))
275 ),
276 withLock(_storeId) {
277 return (effect) =>
278 sql.withTransaction(effect).pipe(
279 Effect.catchIf(SqlError.isSqlError, Effect.die)
280 )
281 }
282 })
283 })
284

Callers

nothing calls this directly

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected