diff options
author | Alexander Early <alexander.early@gmail.com> | 2017-04-01 15:05:52 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2017-04-01 15:05:52 -0700 |
commit | 94a8b2d18bf10cca67cf4c308253f642bbb2b160 (patch) | |
tree | 001afe9b92618fe3ce75e7bdd0979e59ee0a8d63 /lib/eachOfLimit.js | |
parent | faf395c546747c2066e673405e0aec94362811a0 (diff) | |
download | async-94a8b2d18bf10cca67cf4c308253f642bbb2b160.tar.gz |
use the AsyncFunction type in all docs :sweat:
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). */ |