MCPcopy Create free account
hub / github.com/effect-app/libs / onExit

Function onExit

repos/effect/packages/platform-node/src/NodeWorkerRunner.ts:54–58  ·  view source on GitHub ↗
(exit: Exit.Exit<any, E>)

Source from the content-addressed store, hash-verified

52 const trackFiber = Fiber.runIn(scope)
53 const services = yield* Effect.context<R>()
54 const runFork = Effect.runForkWith(services)
55 const onExit = (exit: Exit.Exit<any, E>) => {
56 if (exit._tag === "Failure" && !Cause.hasInterruptsOnly(exit.cause)) {
57 runFork(Effect.logError("unhandled error in worker", exit.cause))
58 }
59 }
60 const port = WorkerThreads.parentPort ?? process
61 function onMessage(message: WorkerRunner.PlatformMessage<I>) {

Callers

nothing calls this directly

Calls 1

runForkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…