Breeze
Functional async flow control library.
![Dependencies](https://img.shields.io/david/Nijikokun/breeze.svg?style=flat)
Install
Usage
Node.js / Browserify
var breeze = require('breeze')
API
breeze(next)
- Initialize breeze flow system, supports initial .then
method..when(arg, next)
- When arg
is truthy, add next
to the stack.maybe(arg, next)
- When arg
is truthy, add next
to the stack, sugar for breeze.when
.some(arg, next)
- When arg
is truthy and no other some
or none
has ran, add to the stack.none(next)
- Whenever no some
have ran, add callback to the stack.then(next)
- Add callback to stack.catch(next)
- Any error caught will terminate stack and be sent here.reset()
- Reset current system
Examples
Check out the examples directory for in-depth examples of how to use breeze.
License
Licensed under The MIT License.