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

Function onError

packages/platform/node/src/NodeWorkerRunner.ts:91–101  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

89 )
90 }
91 function onError(cause: unknown) {
92 Deferred.doneUnsafe(
93 closeLatch,
94 new WorkerError({
95 reason: new WorkerReceiveError({
96 message: "received error event",
97 cause
98 })
99 })
100 )
101 }
102 if (WorkerThreads.parentPort) {
103 WorkerThreads.parentPort.on("messageerror", onMessageError)
104 WorkerThreads.parentPort.on("error", onError)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected