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

Function fn

src/interop/to-es-observable.js:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 : observerOrOnNext
15
16 const fn = event => {
17 if (event.type === END) {
18 closed = true
19 }
20
21 if (event.type === VALUE && observer.next) {
22 observer.next(event.value)
23 } else if (event.type === ERROR && observer.error) {
24 observer.error(event.value)
25 } else if (event.type === END && observer.complete) {
26 observer.complete(event.value)
27 }
28 }
29
30 this._observable.onAny(fn)
31 let closed = false

Callers 15

apFunction · 0.70
index.jsFile · 0.50
callSubscriberFunction · 0.50
mapFunction · 0.50
forEachFunction · 0.50
spreadFunction · 0.50
applyFunction · 0.50
_onTickFunction · 0.50
_onTickFunction · 0.50
_handleValueFunction · 0.50
_handleErrorFunction · 0.50
_handleValueFunction · 0.50

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected