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 60905a4 commit 0c838ed
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 @@ -24,11 +24,9 @@ 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
.map(commonFunc)
.sortAsync(asyncFunc)
Expand All @@ -38,7 +36,6 @@ await prr
.reduceAsync(asyncFunc2)

// Concurrency limit:

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

Expand Down

0 comments on commit 0c838ed

Please sign in to comment.