|
.on('data', () => { |
|
readable.pause(); |
|
setTimeout(() => { |
|
readable.resume(); |
|
}, 8000); |
Is there a way to handle this async behavior without putting a mandatory 8000ms wait between requests. If used correctly, pausing and resuming should be able to handle this without the setTimeout.
Reviews-API/src/etl/etl_characteristics.js
Lines 15 to 19 in b7769c4
Is there a way to handle this async behavior without putting a mandatory 8000ms wait between requests. If used correctly, pausing and resuming should be able to handle this without the setTimeout.