Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ノードに書き込み可能なストリームを実装する場合、実装する必要がある唯一のメソッドは_write. しかし、これ以上データがなくなることをどのように知ることができますか?
_write
私のストリームの消費者は で送信を終了し、私が書き終わったときにmystream.end(data)もイベントを受け取ります。finishしかし、書き込み可能な実装内でこれを知るにはどうすればよいでしょうか?
mystream.end(data)
finish