Skip to content

Commit b0fabd6

Browse files
committed
docs: remove redunant await calls from stream docs
1 parent 22792c8 commit b0fabd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/stream.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
17711771
}
17721772
// With an asynchronous mapper, making at most 2 queries at a time.
17731773
const resolver = new Resolver();
1774-
const dnsResults = await Readable.from([
1774+
const dnsResults = Readable.from([
17751775
'nodejs.org',
17761776
'openjsf.org',
17771777
'www.linuxfoundation.org',
@@ -1816,7 +1816,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
18161816
}
18171817
// With an asynchronous predicate, making at most 2 queries at a time.
18181818
const resolver = new Resolver();
1819-
const dnsResults = await Readable.from([
1819+
const dnsResults = Readable.from([
18201820
'nodejs.org',
18211821
'openjsf.org',
18221822
'www.linuxfoundation.org',
@@ -1874,7 +1874,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
18741874
}
18751875
// With an asynchronous predicate, making at most 2 queries at a time.
18761876
const resolver = new Resolver();
1877-
const dnsResults = await Readable.from([
1877+
const dnsResults = Readable.from([
18781878
'nodejs.org',
18791879
'openjsf.org',
18801880
'www.linuxfoundation.org',

0 commit comments

Comments
 (0)