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

Function onExit

packages/cluster/src/RunnerServer.ts:95–104  ·  view source on GitHub ↗
(
            exit: Exit.Exit<
              any,
              ClusterError.EntityNotAssignedToRunner
            >
          )

Source from the content-addressed store, hash-verified

93 fiberRefs: parent.getFiberRefs()
94 })
95 const onExit = (
96 exit: Exit.Exit<
97 any,
98 ClusterError.EntityNotAssignedToRunner
99 >
100 ) => {
101 if (exit._tag === "Failure") {
102 resume(exit as any)
103 }
104 }
105 const fiber = Runtime.runFork(runtime)(storage.registerReplyHandler(message))
106 fiber.addObserver(onExit)
107 Runtime.runFork(runtime)(Effect.catchTag(

Callers

nothing calls this directly

Calls 1

resumeFunction · 0.70

Tested by

no test coverage detected