(value: any)
| 9 | let pushValue: any | Promise<any> = new Promise(resolve => (pullControl = resolve)); |
| 10 | |
| 11 | const push = (value: any) => { |
| 12 | if (pullControl) { |
| 13 | pullControl(value); |
| 14 | pushValue = new Promise(resolve => (pullControl = resolve)); |
| 15 | } |
| 16 | }; |
| 17 | |
| 18 | source.addEventListener("output", e => { |
| 19 | push(e); |
no outgoing calls
no test coverage detected