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
Calling src.destroy() in a stopOnError callback errors with Cannot write to stream after nil.
constnodeReadableStream=createNodeReadableStream();constsrc=_(nodeReadableStream,()=>()=>nodeReadableStream.destroy());src.map((msg)=>{thrownewError('Failed to map msg');}).stopOnError((ex)=>{console.log('Error:',ex);// Destroy the src so the underlying `nodeReadableStream` can clean up db connections etc.src.destroy();// Causes 'Cannot write to stream after nil' error}).done(()=>{console.log('DONE');});
Calling
src.destroy()
in astopOnError
callback errors withCannot write to stream after nil
.Example:
https://runkit.com/embed/ntjjhyh6noz3
The text was updated successfully, but these errors were encountered: