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', () => {
355355setTimeout (() => ac .abort (), 10000 );
356356```
357357
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
360360an ` AbortController ` it will reject with an ` AbortError ` .
361361
362362``` js
@@ -899,8 +899,8 @@ signal.addEventListener('abort', () => {
899899setTimeout (() => ac .abort (), 10000 );
900900```
901901
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
904904an ` AbortController ` it will reject with an ` AbortError ` .
905905
906906``` js
@@ -1445,4 +1445,5 @@ const { createInterface } = require('readline');
14451445[ `process.stdin` ] : process.md#processstdin
14461446[ `process.stdout` ] : process.md#processstdout
14471447[ `rl.close()` ] : #rlclose
1448+ [ `util.promisify()` ] : util.md#utilpromisifyoriginal
14481449[ reading files ] : #example-read-file-stream-line-by-line
You can’t perform that action at this time.
0 commit comments