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

Function onRes

packages/effect/src/internal/fiberRuntime.ts:2300–2310  ·  view source on GitHub ↗
(
                  res: Exit.Exit<X, E> | Effect.Blocked<X, E>
                )

Source from the content-addressed store, hash-verified

2298 ))
2299 }
2300 const onRes = (
2301 res: Exit.Exit<X, E> | Effect.Blocked<X, E>
2302 ): Effect.Effect<Exit.Exit<X, E> | Effect.Blocked<X, E>, never, R> => {
2303 if (todos.length > 0) {
2304 pushResult(res, index)
2305 if (todos.length > 0) {
2306 return returnNextElement()
2307 }
2308 }
2309 return core.succeed(res)
2310 }
2311 const todo = core.flatMap(
2312 stepOrExit(restore(f(a, index))),
2313 onRes

Callers

nothing calls this directly

Calls 2

pushResultFunction · 0.85
returnNextElementFunction · 0.85

Tested by

no test coverage detected