Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang committed Dec 4, 2019
1 parent e1f66fe commit 8c62c2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ const prr = Prray.from(['www.google.com', 'npmjs.org'])

const responses = await prr.mapAsync(fetch)

//
// ------------------------------------------------
// Async method chaining 🚀

const htmls = await prr.mapAsync(fetch).mapAsync(r => r.text())

//
// ------------------------------------------------
// Method chaining with async and common methods

await prr
Expand All @@ -39,7 +39,7 @@ await prr
.splice(1, 2)
.reduceAsync(asyncFunc2)

//
// ------------------------------------------------
// Concurrency limit:

const responses = await prr.mapAsync(fetch, { concurrency: 10 })
Expand Down

0 comments on commit 8c62c2d

Please sign in to comment.