geraintwhite / async-tools

Useful async functions
https://github.com/grit96/async-tools
MIT License
1 stars 1 forks source link

async-tools

NPM Version Build Status

Useful async functions

Installation

$ npm install async-tools

Documentation

forEachSync(list, cb, fin)

Calls a callback for each item in a list after one another

Params

forEachSyncCallback(item, next, fin)

Params

forEach(list, cb, fin)

Calls a callback for each item in a list at the same time

Params

forEachCallback(item, done)

Params

whileSync(cb, fin)

Calls a callback repeatedly until a condition is met

Params

whileSyncCallback(next)

Params

forEachFunctionSync(funcs, fin)

Calls functions in a list after one another

Params

forEachFunctionSyncCallback(next, fin)

Params

forEachFunction(funcs, fin)

Calls functions in a list at the same time

Params

forEachFunctionCallback(done)

Params

wait(cond, cb, dur)

Blocks until a condition is met

Params

syncFuncLoop(func)

Promise like interface to forEachFunctionSync

Params

Return

syncFuncLoopCallback(next, fin)

Params

run(func)

Return new instance of syncFuncLoop

Params

How to contribute

  1. File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
  2. Fork the project in your account and create a new branch: your-great-feature.
  3. Commit your changes in that branch.
  4. Open a pull request, and reference the initial issue in the pull request message.

License

See the LICENSE file.