Skip to content

Commit 80ce895

Browse files
committed
Changed readme
1 parent 61e5b7c commit 80ce895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Or use [jsDelivr](https://www.jsdelivr.com/package/npm/modern-async) to get the
3535
## Usage
3636

3737
```javascript
38-
import { map, sleep } from 'modern-async'
38+
import { asyncMap, asyncSleep } from 'modern-async'
3939

4040
const array = [1, 2, 3]
41-
const result = await map(array, async (v) => {
42-
await sleep(10)
41+
const result = await asyncMap(array, async (v) => {
42+
await asyncSleep(10)
4343
return v * 2
4444
})
4545
console.log(result)

0 commit comments

Comments
 (0)