You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfunctionpump(iterable,writable){forawait(constchunkofiterable){// Handle backpressure on write().if(!writable.write(chunk)){if(writable.destroyed)return;awaitonce(writable,'drain');// BUG? This will never complete if writable is destroyed with `.destroy()`.}}writable.end();}
The problem here is that it assumes that either 'drain' or 'error' will be emitted, however this is not always the case.