async-loops
Asynchronous for, while, do-while, map, and reduce loops using Promises.
Setup
- Run
npm installto install all dependencies
Scripts
Following are called via npm run:
testto run all tests and generate coverage reporttest -- -isame astestbut ignores linter warningsdocCloneto clone your documentation repositorydocGenerateto generate documentation locallydocPublishto generate and publish documentation on GitHub Pages
Documentation
Usage
Resolve
Body of each loop should resolve.
For map and reduce they should do so with a value.
Reject
Rejections are seen as errors and will be used to abort the loop.
loops.break and loops.continue are special cases that are used as flow control.