Skip to content

Commit 4d4ec1f

Browse files
author
Donghoon Nam
committed
doc: instantiate resolver object
1 parent dec0213 commit 4d4ec1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/stream.md

Lines changed: 2 additions & 0 deletions
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)