summaryrefslogtreecommitdiff
path: root/lib/timesLimit.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/timesLimit.js')
-rw-r--r--lib/timesLimit.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/timesLimit.js b/lib/timesLimit.js
index b4db62c..68d5ede 100644
--- a/lib/timesLimit.js
+++ b/lib/timesLimit.js
@@ -2,19 +2,20 @@ import mapLimit from './mapLimit';
import range from 'lodash/_baseRange';
/**
-* The same as {@link times} but runs a maximum of `limit` async operations at a
-* time.
+ * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a
+ * time.
*
* @name timesLimit
* @static
- * @memberOf async
- * @see async.times
+ * @memberOf module:ControlFlow
+ * @method
+ * @see [async.times]{@link module:ControlFlow.times}
* @category Control Flow
* @param {number} count - The number of times to run the function.
* @param {number} limit - The maximum number of async operations at a time.
* @param {Function} iteratee - The function to call `n` times. Invoked with the
* iteration index and a callback (n, next).
- * @param {Function} callback - see {@link async.map}.
+ * @param {Function} callback - see [async.map]{@link module:Collections.map}.
*/
export default function timeLimit(count, limit, iteratee, callback) {
mapLimit(range(0, count, 1), limit, iteratee, callback);