~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/api/stream.markdown

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
  writer.write('hello, #' + i + '!\n');
538
538
}
539
539
writer.end('this is the end\n');
540
 
write.on('finish', function() {
 
540
writer.on('finish', function() {
541
541
  console.error('all writes are now complete.');
542
542
});
543
543
```
577
577
reader.unpipe(writer);
578
578
```
579
579
 
 
580
#### Event: 'error'
 
581
 
 
582
Emitted if there was an error when writing or piping data.
 
583
 
580
584
### Class: stream.Duplex
581
585
 
582
586
Duplex streams are streams that implement both the [Readable][] and