blob: e68d1edb2d09f6e6b9ff3f37d62702e64879db58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
import timesLimit from './timesLimit';
import doLimit from './internal/doLimit';
/**
* The same as `times` but runs only a single async operation at a time.
*
* @name timesSeries
* @static
* @memberOf async
* @see `async.times`
* @category Control Flow
* @param {number} n - The number of times to run the function.
* @param {Function} iteratee - The function to call `n` times. Invoked with the
* iteration index and a callback (n, next).
* @param {Function} callback - see [`map`](#map).
*/
export default doLimit(timesLimit, 1);
|