doc: "finish" event is on the writable stream

archived-io.js-v0.10
Gabriel Farrell 2013-12-11 10:14:10 -05:00 committed by Timothy J Fontaine
parent 910bc3c02d
commit 04d52270b6
1 changed files with 1 additions and 1 deletions

View File

@ -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.');
});
```