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

Function onError

packages/platform-node-shared/src/NodeSocket.ts:140–145  ·  view source on GitHub ↗
(cause: Error)

Source from the content-addressed store, hash-verified

138 Deferred.unsafeDone(fiberSet.deferred, Effect.void)
139 }
140 function onError(cause: Error) {
141 Deferred.unsafeDone(
142 fiberSet.deferred,
143 Effect.fail(new Socket.SocketGenericError({ reason: "Read", cause }))
144 )
145 }
146 function onClose(hadError: boolean) {
147 Deferred.unsafeDone(
148 fiberSet.deferred,

Callers 2

handleErrorFunction · 0.50
onErrFunction · 0.50

Calls 2

unsafeDoneMethod · 0.80
failMethod · 0.65

Tested by

no test coverage detected