File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,8 @@ signal.addEventListener('abort', () => {
355
355
setTimeout (() => ac .abort (), 10000 );
356
356
```
357
357
358
- If this method is invoked as it's util.promisify()ed version, it returns a
359
- Promise that fulfills with the answer. If the question is canceled using
358
+ Use ` util.promisify() ` to create a version that returns a
359
+ promise that fulfills with the answer. If the question is canceled using
360
360
an ` AbortController ` it will reject with an ` AbortError ` .
361
361
362
362
``` js
@@ -899,8 +899,8 @@ signal.addEventListener('abort', () => {
899
899
setTimeout (() => ac .abort (), 10000 );
900
900
```
901
901
902
- If this method is invoked as it's util.promisify()ed version, it returns a
903
- Promise that fulfills with the answer. If the question is canceled using
902
+ Use ` util.promisify() ` to create a version that returns a
903
+ promise that fulfills with the answer. If the question is canceled using
904
904
an ` AbortController ` it will reject with an ` AbortError ` .
905
905
906
906
``` js
@@ -1445,4 +1445,5 @@ const { createInterface } = require('readline');
1445
1445
[ `process.stdin` ] : process.md#processstdin
1446
1446
[ `process.stdout` ] : process.md#processstdout
1447
1447
[ `rl.close()` ] : #rlclose
1448
+ [ `util.promisify()` ] : util.md#utilpromisifyoriginal
1448
1449
[ reading files ] : #example-read-file-stream-line-by-line
You can’t perform that action at this time.
0 commit comments