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

Function onError

packages/platform/node-shared/src/NodeSink.ts:116–116  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

114 const completion = Deferred.makeUnsafe<void>()
115 const failure = Deferred.makeUnsafe<never, E>()
116 const onError = (error: unknown) => Deferred.doneUnsafe(failure, Effect.failSync(() => options.onError(error)))
117 let errorEmitted = false
118 const onStreamError = (error: unknown) => {
119 errorEmitted = true

Callers 7

onStreamErrorFunction · 0.70
pullIntoWritableFunction · 0.70
loopFunction · 0.70
resolveFunction · 0.70
toStringFunction · 0.70
onDataFunction · 0.70
toArrayBufferFunction · 0.70

Calls 1

onErrorMethod · 0.80

Tested by

no test coverage detected