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