DelayIteratee(time, iteratee)
Make sure that iteratee[n] will be invoked after min time(ms) from the iteratee[n - 1] invoking.
Param | Type | Description |
---|---|---|
time | number |
(ms) |
iteratee | function |
Example
const DelayIteratee = ; const start_at = Date;const coll = 'A' 'B' 'C' 'D' 'E' 'F';const iteratee = async console; Promiseallcoll; // orconst asyncLib = ;asyncLib; // will print like:at 2ms Aat 201ms Bat 400ms Cat 603ms Dat 802ms Eat 1005ms F