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

Function stampTransaction

packages/effect/src/Effect.ts:16455–16459  ·  view source on GitHub ↗
(state: TransactionMetaInner, now: number)

Source from the content-addressed store, hash-verified

16453const completedTransactions = new WeakSet<Transaction["Service"]>()
16454
16455const stampTransaction = (state: TransactionMetaInner, now: number) => {
16456 state.elapsedSincePrevious = now - state.now
16457 state.now = now
16458 state.elapsed = now - state.start
16459}
16460
16461const isTransactionConsistent = (state: TransactionMeta) => {
16462 for (const [ref, { version }] of state.journal) {

Callers 1

txFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected