From 80ce895089bf2d558d7d928ce8f4698920454cd8 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 29 Dec 2023 01:01:30 +0100 Subject: [PATCH] Changed readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4f73b09..64dadc7 100644 --- a/README.md +++ b/README.md @@ -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)