-
Romain Courteaud authored
Cancel allow to manually interrupt a promise execution. The promise becomes rejected with a CancellationError. var xhr, promise; promise = RSVP.Promise( // Resolver function function (done, fail) { xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.send(); }, // Canceller function function () { xhr.abort(); }, ) promise.cancel();
f8ce66af
Name |
Last commit
|
Last update |
---|---|---|
lib | ||
options | ||
test | ||
.gitignore | ||
.jshintrc | ||
.npmignore | ||
.travis.yml | ||
CHANGELOG.md | ||
Gruntfile.js | ||
LICENSE | ||
README.md | ||
component.json | ||
package.json |