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

Function onExit

packages/platform-node/src/internal/workerRunner.ts:36–40  ·  view source on GitHub ↗
(exit: Exit.Exit<any, E>)

Source from the content-addressed store, hash-verified

34 const fiberSet = yield* FiberSet.make<any, WorkerError | E>()
35 const runFork = Runtime.runFork(runtime)
36 const onExit = (exit: Exit.Exit<any, E>) => {
37 if (exit._tag === "Failure" && !Cause.isInterruptedOnly(exit.cause)) {
38 Deferred.unsafeDone(closeLatch, Exit.die(Cause.squash(exit.cause)))
39 }
40 }
41 ;(WorkerThreads.parentPort ?? process).on("message", (message: Runner.BackingRunner.Message<I>) => {
42 if (message[0] === 0) {
43 const result = handler(0, message[1])

Callers

nothing calls this directly

Calls 2

unsafeDoneMethod · 0.80
dieMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…