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

Function isTransactionConsistent

packages/effect/src/Effect.ts:14570–14577  ·  view source on GitHub ↗
(state: Transaction["Service"])

Source from the content-addressed store, hash-verified

14568 })
14569
14570const isTransactionConsistent = (state: Transaction["Service"]) => {
14571 for (const [ref, { version }] of state.journal) {
14572 if (ref.version !== version) {
14573 return false
14574 }
14575 }
14576 return true
14577}
14578
14579const awaitPendingTransaction = (state: Transaction["Service"]) =>
14580 suspend(() => {

Callers 1

stepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected