mirror of https://github.com/nodejs/node.git
doc: "finish" event is on the writable stream
parent
910bc3c02d
commit
04d52270b6
|
@ -537,7 +537,7 @@ for (var i = 0; i < 100; i ++) {
|
|||
writer.write('hello, #' + i + '!\n');
|
||||
}
|
||||
writer.end('this is the end\n');
|
||||
write.on('finish', function() {
|
||||
writer.on('finish', function() {
|
||||
console.error('all writes are now complete.');
|
||||
});
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue