npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ovh-angular-q-allsettled

v0.3.1

Published

Copy of kriskowal/q for ovh control panels

Downloads

4

Readme

ovh-angular-q-allSettled

OVH components

Maintenance Chat on gitter

NPM

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.module("app", [
  'ovh-angular-q-allSettled',
    var tinkyWinky = $q.defer(),
        dipsy = $q.defer(),
        laaLaa = $q.defer(),
        po = $q.defer();

    $timeout(function(){
        console.log("ok tinkyWinky");
        tinkyWinky.resolve("tinkyWinky success");
    }, 1000);
    $timeout(function(){
        console.log("error dipsy");
        dipsy.reject("dipsy error");
    }, 2000);
    $timeout(function(){
        console.log("ok laaLaa");
        laaLaa.resolve("laaLaa success");
    }, 3000);
    $timeout(function(){
        console.log("error po");
        po.reject("tutu error");
    }, 4000);

    $q.all([tinkyWinky.promise, dipsy.promise, laaLaa.promise, po.promise]).then(function(){
        console.log("Q ALL DONE");
        console.log(arguments);
    }, function(){
        console.log("Q ONE ERROR BUT ALL NOT DONE");
        console.log(arguments);
    });

    $q.allSettled([tinkyWinky.promise, dipsy.promise, laaLaa.promise, po.promise]).then(function(){
        console.log("ALL DONE");
        console.log(arguments);
    }, function(){
        console.log("ONE OR MORE ERROR");
        console.log(arguments);
    });

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