diff options
Diffstat (limited to 'lib/eachOfLimit.js')
-rw-r--r-- | lib/eachOfLimit.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/eachOfLimit.js b/lib/eachOfLimit.js index 17dffc1..1de28ef 100644 --- a/lib/eachOfLimit.js +++ b/lib/eachOfLimit.js @@ -14,12 +14,10 @@ import wrapAsync from './internal/wrapAsync'; * @category Collection * @param {Array|Iterable|Object} coll - A collection to iterate over. * @param {number} limit - The maximum number of async operations at a time. - * @param {Function} iteratee - A function to apply to each + * @param {AsyncFunction} iteratee - An async function to apply to each * item in `coll`. The `key` is the item's key, or index in the case of an - * array. The iteratee is passed a `callback(err)` which must be called once it - * has completed. If no error has occurred, the callback should be run without - * arguments or with an explicit `null` argument. Invoked with - * (item, key, callback). + * array. + * Invoked with (item, key, callback). * @param {Function} [callback] - A callback which is called when all * `iteratee` functions have finished, or an error occurs. Invoked with (err). */ |