@@ -1437,9 +1437,12 @@ user programs.
1437
1437
added: v8.0.0
1438
1438
-->
1439
1439
1440
- * ` err ` {Error} An error.
1441
- * ` callback ` {Function} A callback function that takes an optional error argument
1442
- which is invoked when the writable is destroyed.
1440
+ * ` err ` {Error} A possible error.
1441
+ * ` callback ` {Function} A callback function that takes an optional error
1442
+ argument.
1443
+
1444
+ The ` _destroy() ` method is called by [ ` writable.destroy() ` ] [ writable-destroy ] .
1445
+ It can be overriden by child classes but it ** must not** be called directly.
1443
1446
1444
1447
#### writable.\_ final(callback)
1445
1448
<!-- YAML
@@ -1606,9 +1609,12 @@ user programs.
1606
1609
added: v8.0.0
1607
1610
-->
1608
1611
1609
- * ` err ` {Error} An error.
1612
+ * ` err ` {Error} A possible error.
1610
1613
* ` callback ` {Function} A callback function that takes an optional error
1611
- argument which is invoked when the readable is destroyed.
1614
+ argument.
1615
+
1616
+ The ` _destroy() ` method is called by [ ` readable.destroy() ` ] [ readable-destroy ] .
1617
+ It can be overriden by child classes but it ** must not** be called directly.
1612
1618
1613
1619
#### readable.push(chunk[ , encoding] )
1614
1620
<!-- YAML
@@ -2232,4 +2238,6 @@ contain multi-byte characters.
2232
2238
[ stream-resume ] : #stream_readable_resume
2233
2239
[ stream-write ] : #stream_writable_write_chunk_encoding_callback
2234
2240
[ readable-_destroy ] : #stream_readable_destroy_err_callback
2241
+ [ readable-destroy ] : #stream_readable_destroy_error
2235
2242
[ writable-_destroy ] : #stream_writable_destroy_err_callback
2243
+ [ writable-destroy ] : #stream_writable_destroy_error
0 commit comments