Skip to content

Commit

Permalink
Changed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-van committed Dec 29, 2023
1 parent 61e5b7c commit 80ce895
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 @@ -35,11 +35,11 @@ Or use [jsDelivr](https://www.jsdelivr.com/package/npm/modern-async) to get the
## Usage

```javascript
import { map, sleep } from 'modern-async'
import { asyncMap, asyncSleep } from 'modern-async'

const array = [1, 2, 3]
const result = await map(array, async (v) => {
await sleep(10)
const result = await asyncMap(array, async (v) => {
await asyncSleep(10)
return v * 2
})
console.log(result)
Expand Down

0 comments on commit 80ce895

Please sign in to comment.