mirror of https://github.com/seald/nedb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
Waterfall
Responsible for sequentially executing actions on the database
Kind: global class
- Waterfall
- new Waterfall()
- .guardian ⇒
Promise
- .waterfall(func) ⇒
AsyncFunction
- .chain(promise) ⇒
Promise
new Waterfall()
Instantiate a new Waterfall.
waterfall.guardian ⇒ Promise
Getter that gives a Promise which resolves when all tasks up to when this function is called are done.
This Promise cannot reject.
Kind: instance property of Waterfall
waterfall.waterfall(func) ⇒ AsyncFunction
Kind: instance method of Waterfall
Params
- func
AsyncFunction
waterfall.chain(promise) ⇒ Promise
Shorthand for chaining a promise to the Waterfall
Kind: instance method of Waterfall
Params
- promise
Promise