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

Function mirror

test/specs/with-handler.js:4–13  ·  view source on GitHub ↗
(emitter, event)

Source from the content-addressed store, hash-verified

2
3describe('withHandler', () => {
4 const mirror = (emitter, event) => {
5 switch (event.type) {
6 case 'value':
7 return emitter.emit(event.value)
8 case 'error':
9 return emitter.error(event.value)
10 case 'end':
11 return emitter.end()
12 }
13 }
14
15 const emitEventMirror = (emitter, event) => emitter.emitEvent(event)
16

Callers 1

with-handler.jsFile · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…