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

Function onExit

packages/cluster/src/internal/fiber.ts:26–32  ·  view source on GitHub ↗
(exit: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

24 resume(cause ? Effect.failCause(cause) : Effect.void)
25 }
26 function onExit(exit: Exit.Exit<A, E>) {
27 i++
28 if (exit._tag === "Failure") {
29 cause = cause ? Cause.parallel(cause, exit.cause) : exit.cause
30 }
31 loop()
32 }
33 loop()
34 return Effect.sync(() => fibers[i].removeObserver(onExit))
35 })

Callers

nothing calls this directly

Calls 1

loopFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…