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

Function pushResult

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

Source from the content-addressed store, hash-verified

2275 const processingFiber = runFiber(
2276 core.async<any, any, any>((resume) => {
2277 const pushResult = <X, E>(res: Exit.Exit<X, E> | Effect.Blocked<X, E>, index: number) => {
2278 if (res._op === "Blocked") {
2279 residual.push(res as core.Blocked)
2280 } else {
2281 results.push({ index, exit: res })
2282 if (res._op === "Failure" && !interrupted) {
2283 onInterruptSignal()
2284 }
2285 }
2286 }
2287 const next = () => {
2288 if (todos.length > 0) {
2289 const a = todos.pop()!

Callers 2

onResFunction · 0.85
nextFunction · 0.85

Calls 1

onInterruptSignalFunction · 0.85

Tested by

no test coverage detected