Skip to content

Instantly share code, notes, and snippets.

@jquense
Created May 19, 2014 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jquense/9fc74f777f1ddd74ca2b to your computer and use it in GitHub Desktop.
Save jquense/9fc74f777f1ddd74ca2b to your computer and use it in GitHub Desktop.
Aborting Bluebird Promise
var xhr = $.ajax({}).then(null, function(){})
var promise = Promise.cast(xhr)
xhr.abort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment