al

async-loop

AsyncLoop: simple async loop function =====================================

Showing:

Popularity

Downloads/wk

12

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

AsyncLoop: simple async loop function

AsyncLoop exports a single function with the following signature: (array, end, forEach):

  • array is the array to loop over
  • end is a callback invoked when all the elements have been looped over. The first argument is an error, or undefined.
  • forEach receives three arguments: (elem, next, index). It is invoked for each element of array. next is a function that, when invoked, passes control to the next element in th array. Unless it's invoked with an argument, which is assumed to be an error. In this case, the async loop ends immediately.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100