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

Function onSuccess

packages/effect/src/Channel.ts:3813–3818  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

3811 : Effect.failCause(cause_)
3812 },
3813 onSuccess(a): Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E, R> {
3814 const b = f(state, a)
3815 return Arr.isArray(b)
3816 ? Effect.succeed(b as any)
3817 : b as any
3818 }
3819 })
3820 const pump = Effect.suspend(function loop(): Pull.Pull<B, OutErr | E, OutDone, R> {
3821 if (current === undefined) {

Callers

nothing calls this directly

Calls 2

fFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected