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
stream.finished(duplex, { readable: true, writable: false }, cb) doesn't fire if writable side is finalising.
conststream=require('stream')constdup=newstream.Duplex({final(cb){},// never close writable side for test purposeread(){this.push(null)}})dup.on('end',function(){console.log('end fired')})stream.finished(dup,{readable: true,writable: false},function(){// doesn't fire in masterconsole.log('not readable')})dup.end()dup.resume()