Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0b9ef68

Browse filesBrowse files
codenamenamaduh95
authored andcommitted
doc: instantiate resolver object
PR-URL: #60476 Fixes: #60455 Refs: https://nodejs.org/api/stream.html#readabletoarrayoptions Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 97ed560 commit 0b9ef68
Copy full SHA for 0b9ef68

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2315,6 +2315,8 @@ import { Resolver } from 'node:dns/promises';
23152315

23162316
await Readable.from([1, 2, 3, 4]).toArray(); // [1, 2, 3, 4]
23172317

2318+
const resolver = new Resolver();
2319+
23182320
// Make dns queries concurrently using .map and collect
23192321
// the results into an array using toArray
23202322
const dnsResults = await Readable.from([

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.