Skip to content

Commit 2478b47

Browse files
gioraguttBethGriggs
authored andcommitted
doc: remove redunant await calls from stream docs
PR-URL: #41592 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 74bd312 commit 2478b47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/stream.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
17171717
}
17181718
// With an asynchronous mapper, making at most 2 queries at a time.
17191719
const resolver = new Resolver();
1720-
const dnsResults = await Readable.from([
1720+
const dnsResults = Readable.from([
17211721
'nodejs.org',
17221722
'openjsf.org',
17231723
'www.linuxfoundation.org',
@@ -1762,7 +1762,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
17621762
}
17631763
// With an asynchronous predicate, making at most 2 queries at a time.
17641764
const resolver = new Resolver();
1765-
const dnsResults = await Readable.from([
1765+
const dnsResults = Readable.from([
17661766
'nodejs.org',
17671767
'openjsf.org',
17681768
'www.linuxfoundation.org',
@@ -1820,7 +1820,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
18201820
}
18211821
// With an asynchronous predicate, making at most 2 queries at a time.
18221822
const resolver = new Resolver();
1823-
const dnsResults = await Readable.from([
1823+
const dnsResults = Readable.from([
18241824
'nodejs.org',
18251825
'openjsf.org',
18261826
'www.linuxfoundation.org',

0 commit comments

Comments
 (0)