()
| 819 | // - Backpressure must be enforced |
| 820 | // - Shutdown must stop all activity |
| 821 | function pipeLoop() { |
| 822 | return new Promise((resolveLoop, rejectLoop) => { |
| 823 | function next(done) { |
| 824 | if (done) { |
| 825 | resolveLoop(); |
| 826 | } else { |
| 827 | pipeStep().then(next, rejectLoop); |
| 828 | } |
| 829 | } |
| 830 | |
| 831 | next(false); |
| 832 | }); |
| 833 | } |
| 834 | |
| 835 | function pipeStep() { |
| 836 | if (shuttingDown === true) { |
no test coverage detected