+1
-1
@@ -20,3 +20,3 @@ export type LimitFunction = { | ||
| This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. | ||
| This might be useful if you want to tear down the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. | ||
@@ -23,0 +23,0 @@ Note: This does not cancel promises that are already running. |
+1
-1
@@ -108,3 +108,3 @@ import Queue from 'yocto-queue'; | ||
| async value(iterable, function_) { | ||
| const promises = Array.from(iterable, (value, index) => this(function_, value, index)); | ||
| const promises = Array.from(iterable, (value, index) => generator(function_, value, index)); | ||
| return Promise.all(promises); | ||
@@ -111,0 +111,0 @@ }, |
+1
-1
| { | ||
| "name": "p-limit", | ||
| "version": "7.3.0", | ||
| "version": "7.3.1", | ||
| "description": "Run multiple promise-returning & async functions with limited concurrency", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+1
-1
@@ -100,3 +100,3 @@ # p-limit | ||
| This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. | ||
| This might be useful if you want to tear down the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. | ||
@@ -103,0 +103,0 @@ Note: This does not cancel promises that are already running. |
14888
0.05%