(value)
| 410 | subscription.add( |
| 411 | source.subscribe({ |
| 412 | next(value) { |
| 413 | if (writing) { |
| 414 | writing = call.write(value); |
| 415 | } else { |
| 416 | class="cm">// If we canclass="st">'t write, that's because we need to |
| 417 | class="cm">// wait for the drain event before we can write again |
| 418 | class="cm">// buffer the value and wait for the drain event |
| 419 | valuesWaitingToBeDrained.push(value); |
| 420 | } |
| 421 | }, |
| 422 | error(err) { |
| 423 | if (valuesWaitingToBeDrained.length === 0) { |
| 424 | class="cm">// We're not waiting for a drain event, so we can just |
no outgoing calls
no test coverage detected