Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promisex

leojh8ISC0.0.2

Utility methods for jQuery promises

jquery, promises, javascript

readme

Promisex

Utility methods for jQuery promises

  • promisex.runinSequence([calls]) - Takes an array of promise objects and runs them in sequence.
Example

var scripts: [
    'http://localhost:8080/build/manifest.js',
    'http://localhost:8080/build/vendor.js',
    'http://localhost:8080/build/app.js'
  ];

var calls = scripts.map(function(url) {
  return function() {return jQuery.getScript(url);};
});

promisex.runInSequence(calls)
.then(function() {
  //succeeded
}, function() {
  //failed
});