MCPcopy Index your code
hub / github.com/Effect-TS/effect / onRes

Function onRes

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

Source from the content-addressed store, hash-verified

2288 ))
2289 }
2290 const onRes = (
2291 res: Exit.Exit<X, E> | Effect.Blocked<X, E>
2292 ): Effect.Effect<Exit.Exit<X, E> | Effect.Blocked<X, E>, never, R> => {
2293 if (todos.length > 0) {
2294 pushResult(res, index)
2295 if (todos.length > 0) {
2296 return returnNextElement()
2297 }
2298 }
2299 return core.succeed(res)
2300 }
2301 const todo = core.flatMap(
2302 stepOrExit(restore(f(a, index))),
2303 onRes

Callers

nothing calls this directly

Calls 2

pushResultFunction · 0.85
returnNextElementFunction · 0.85

Tested by

no test coverage detected