Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2020-03-15 17:20:46 +0300
committerRobert Nagy <ronagy@icloud.com>2020-05-27 11:24:33 +0300
commit54b36e401d2b72d95e5f1dbbc787f6beed639347 (patch)
tree7007e41615b6e3fe09543a4f09f46231fbb10e26 /doc/api/stream.md
parentfb8cc72e738f2854302bf270b2f3997bc273b9a6 (diff)
fs: reimplement read and write streams using stream.construct
Refs: #23133 PR-URL: https://github.com/nodejs/node/pull/29656 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index e8a3050291e..1c9a40bc9fc 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -2242,10 +2242,10 @@ The `_construct()` method MUST NOT be called directly. It may be implemented
by child classes, and if so, will be called by the internal `Readable`
class methods only.
-This optional function will be called by the stream constructor,
-delaying any `_read` and `_destroy` calls until `callback` is called. This is
-useful to initialize state or asynchronously initialize resources before the
-stream can be used.
+This optional function will be scheduled in the next tick by the stream
+constructor, delaying any `_read` and `_destroy` calls until `callback` is
+called. This is useful to initialize state or asynchronously initialize
+resources before the stream can be used.
```js
const { Readable } = require('stream');