Skip to content

Commit

Permalink
doc: remove redunant await calls from stream docs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gioragutt authored and BethGriggs committed Jan 24, 2022
1 parent 74bd312 commit 2478b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
}
// With an asynchronous mapper, making at most 2 queries at a time.
const resolver = new Resolver();
const dnsResults = await Readable.from([
const dnsResults = Readable.from([
'nodejs.org',
'openjsf.org',
'www.linuxfoundation.org',
Expand Down Expand Up @@ -1762,7 +1762,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
}
// With an asynchronous predicate, making at most 2 queries at a time.
const resolver = new Resolver();
const dnsResults = await Readable.from([
const dnsResults = Readable.from([
'nodejs.org',
'openjsf.org',
'www.linuxfoundation.org',
Expand Down Expand Up @@ -1820,7 +1820,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
}
// With an asynchronous predicate, making at most 2 queries at a time.
const resolver = new Resolver();
const dnsResults = await Readable.from([
const dnsResults = Readable.from([
'nodejs.org',
'openjsf.org',
'www.linuxfoundation.org',
Expand Down

0 comments on commit 2478b47

Please sign in to comment.