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

Function step

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

Source from the content-addressed store, hash-verified

14551 )
14552 ),
14553 step(exit: Exit.Exit<A, E>) {
14554 if (state.retry || !isTransactionConsistent(state)) {
14555 return clearTransaction(state)
14556 }
14557 if (Exit.isSuccess(exit)) {
14558 commitTransaction(fiber, state)
14559 } else {
14560 clearTransaction(state)
14561 }
14562 result = exit
14563 }
14564 }),
14565 () => result!
14566 )

Callers

nothing calls this directly

Calls 3

isTransactionConsistentFunction · 0.85
clearTransactionFunction · 0.85
commitTransactionFunction · 0.85

Tested by

no test coverage detected