ovh-angular-q-allSettled
Copy of kriskowal/q => allSettled
Returns a promise that is fulfilled with an array of promise state snapshots, but only after all the original promises have settled, i.e. become either fulfilled or rejected.
This method is often used in its static form on arrays of promises, in order to execute a number of operations concurrently and be notified when they all finish, regardless of success or failure. For example:
Example
angular
var tinkyWinky = $qdefer dipsy = $qdefer laaLaa = $qdefer po = $qdefer; ; ; ; ; $qalltinkyWinkypromise dipsypromise laaLaapromise popromise; $q;
Installation
Bower
bower install ovh-angular-q-allsettled --save
NPM
npm install ovh-angular-q-allsettled --save
Get the sources
git clone https://github.com/ovh-ux/ovh-angular-q-allSettled.git cd ovh-angular-q-allSettled npm install bower install
You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !
Have a look in CONTRIBUTING.md
Run the tests
npm test
Related links
- Contribute: https://github.com/ovh-ux/ovh-angular-q-allSettled
- Report bugs: https://github.com/ovh-ux/ovh-angular-q-allSettled/issues
- Get latest version: https://github.com/ovh-ux/ovh-angular-q-allSettled
License
See https://github.com/ovh-ux/ovh-angular-q-allSettled/blob/master/LICENSE