MCPcopy
hub / github.com/kefirjs/kefir / _handleError

Function _handleError

src/one-source/errors-to-values.js:12–20  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

10 },
11
12 _handleError(x) {
13 const fn = this._fn
14 const result = fn(x)
15 if (result.convert) {
16 this._emitValue(result.value)
17 } else {
18 this._emitError(x)
19 }
20 },
21}
22
23const S = createStream('errorsToValues', mixin)

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…