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

Function step

packages/effect/src/Effect.ts:16432–16444  ·  view source on GitHub ↗
(exit: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

16430 return run
16431 },
16432 step(exit: Exit.Exit<A, E>) {
16433 if (mutable.retry || !isTransactionConsistent(mutable)) {
16434 mutable.attempt++
16435 mutable.retryReason = mutable.retry ? "retry" : "conflict"
16436 return clearTransaction(mutable)
16437 }
16438 if (Exit.isSuccess(exit)) {
16439 commitTransaction(fiber, mutable)
16440 }
16441 clearTransaction(mutable)
16442 completedTransactions.add(mutable)
16443 result = exit
16444 }
16445 }),
16446 () => result!
16447 )

Callers

nothing calls this directly

Calls 4

isTransactionConsistentFunction · 0.85
clearTransactionFunction · 0.85
commitTransactionFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected