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

Function run

packages/effect/src/internal/stm/stm.ts:634–639  ·  view source on GitHub ↗
(
      state: IteratorYieldResult<any> | IteratorReturnResult<any>
    )

Source from the content-addressed store, hash-verified

632 const iterator = f(pipe)
633 const state = iterator.next()
634 const run = (
635 state: IteratorYieldResult<any> | IteratorReturnResult<any>
636 ): STM.STM<any, any, any> =>
637 state.done ?
638 core.succeed(state.value) :
639 core.flatMap(yieldWrapGet(state.value) as any, (val: any) => run(iterator.next(val as never)))
640 return run(state)
641 })
642

Callers 1

stm.tsFile · 0.70

Calls 2

yieldWrapGetFunction · 0.85
nextMethod · 0.65

Tested by

no test coverage detected