MCPcopy
hub / github.com/Effect-TS/effect / onExit

Function onExit

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

Source from the content-addressed store, hash-verified

48 const fiberSet = yield* FiberSet.make<any, WorkerError | E>()
49 const runFork = Runtime.runFork(runtime)
50 function onExit(exit: Exit.Exit<any, E>) {
51 if (exit._tag === "Failure" && !Cause.isInterruptedOnly(exit.cause)) {
52 Deferred.unsafeDone(closeLatch, Exit.die(Cause.squash(exit.cause)))
53 }
54 }
55
56 function onMessage(portId: number) {
57 return function(event: MessageEvent) {

Callers

nothing calls this directly

Calls 2

unsafeDoneMethod · 0.80
dieMethod · 0.65

Tested by

no test coverage detected