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 84f792c commit 60905a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ 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 +37,6 @@ await prr
.splice(1, 2)
.reduceAsync(asyncFunc2)

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

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

0 comments on commit 60905a4

Please sign in to comment.