@@ -354,6 +354,19 @@ buffered writes in a more optimized manner.
354354
355355See also: [ ` writable.uncork() ` ] [ ] .
356356
357+ ##### writable.destroy([ error] )
358+ <!-- YAML
359+ added: v8.0.0
360+ -->
361+
362+ * Returns: {this}
363+
364+ Destroy the stream, and emit the passed ` error ` and a ` close ` event.
365+ After this call, the writable stream has ended and subsequent calls
366+ to ` write ` / ` end ` will give an ` ERR_STREAM_DESTROYED ` error.
367+ Implementors should not override this method,
368+ but instead implement [ ` writable._destroy ` ] [ writable-_destroy ] .
369+
357370##### writable.end([ chunk] [ , encoding ] [ , callback] )
358371<!-- YAML
359372added: v0.9.4
@@ -536,19 +549,6 @@ write('hello', () => {
536549
537550A Writable stream in object mode will always ignore the ` encoding ` argument.
538551
539- ##### writable.destroy([ error] )
540- <!-- YAML
541- added: v8.0.0
542- -->
543-
544- * Returns: {this}
545-
546- Destroy the stream, and emit the passed ` error ` and a ` close ` event.
547- After this call, the writable stream has ended and subsequent calls
548- to ` write ` / ` end ` will give an ` ERR_STREAM_DESTROYED ` error.
549- Implementors should not override this method,
550- but instead implement [ ` writable._destroy ` ] [ writable-_destroy ] .
551-
552552### Readable Streams
553553
554554Readable streams are an abstraction for a * source* from which data is
@@ -806,6 +806,20 @@ In general, the `readable.pipe()` and `'data'` event mechanisms are easier to
806806understand than the ` 'readable' ` event. However, handling ` 'readable' ` might
807807result in increased throughput.
808808
809+ ##### readable.destroy([ error] )
810+ <!-- YAML
811+ added: v8.0.0
812+ -->
813+
814+ * ` error ` {Error} Error which will be passed as payload in ` 'error' ` event
815+ * Returns: {this}
816+
817+ Destroy the stream, and emit ` 'error' ` and ` close ` . After this call, the
818+ readable stream will release any internal resources and subsequent calls
819+ to ` push ` will be ignored.
820+ Implementors should not override this method, but instead implement
821+ [ ` readable._destroy ` ] [ readable-_destroy ] .
822+
809823##### readable.isPaused()
810824<!-- YAML
811825added: v0.11.14
@@ -913,16 +927,6 @@ to prevent memory leaks.
913927The [ ` process.stderr ` ] [ ] and [ ` process.stdout ` ] [ ] Writable streams are never
914928closed until the Node.js process exits, regardless of the specified options.
915929
916- ##### readable.readableHighWaterMark
917- <!-- YAML
918- added: v9.3.0
919- -->
920-
921- * Returns: {number}
922-
923- Returns the value of ` highWaterMark ` passed when constructing this
924- ` Readable ` .
925-
926930##### readable.read([ size] )
927931<!-- YAML
928932added: v0.9.4
@@ -969,6 +973,16 @@ also be emitted.
969973Calling [ ` stream.read([size]) ` ] [ stream-read ] after the [ ` 'end' ` ] [ ] event has
970974been emitted will return ` null ` . No runtime error will be raised.
971975
976+ ##### readable.readableHighWaterMark
977+ <!-- YAML
978+ added: v9.3.0
979+ -->
980+
981+ * Returns: {number}
982+
983+ Returns the value of ` highWaterMark ` passed when constructing this
984+ ` Readable ` .
985+
972986##### readable.readableLength
973987<!-- YAML
974988added: v9.4.0
@@ -1168,20 +1182,6 @@ myReader.on('readable', () => {
11681182});
11691183```
11701184
1171- ##### readable.destroy([ error] )
1172- <!-- YAML
1173- added: v8.0.0
1174- -->
1175-
1176- * ` error ` {Error} Error which will be passed as payload in ` 'error' ` event
1177- * Returns: {this}
1178-
1179- Destroy the stream, and emit ` 'error' ` and ` close ` . After this call, the
1180- readable stream will release any internal resources and subsequent calls
1181- to ` push ` will be ignored.
1182- Implementors should not override this method, but instead implement
1183- [ ` readable._destroy ` ] [ readable-_destroy ] .
1184-
11851185##### readable[ @@asyncIterator ]
11861186<!-- YAML
11871187added: REPLACEME
0 commit comments