-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0364ff3
commit 9c23239
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import doParallelLimit from './internal/doParallelLimit'; | ||
import concat from './internal/concat'; | ||
|
||
/** | ||
* The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time. | ||
* | ||
* @name concatLimit | ||
* @static | ||
* @memberOf module:Collections | ||
* @method | ||
* @see [async.concat]{@link module:Collections.concat} | ||
* @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 {AsyncFunction} iteratee - A function to apply to each item in `coll`, | ||
* which should use an array as its result. Invoked with (item, callback). | ||
* @param {Function} [callback(err)] - A callback which is called after all the | ||
* `iteratee` functions have finished, or an error occurs. Results is an array | ||
* containing the concatenated results of the `iteratee` function. Invoked with | ||
* (err, results). | ||
*/ | ||
export default doParallelLimit(concat); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters