RSVP or jQuery.Deferred?


#1

I’m writing custom adapter for ember data and want to stick with one of available promise implementations. What is recommended - Ember.RSVP.Promise or jQuery.Deferred?


#2

Ember.RSVP.Promise is definitely the way to go. There are many pieces of Ember internals that rely on Promise objects.


#3

OK, thanks. I also find it a bit more convenient to use.


#4

Domenic’s epic rant about promises is good context here, and explains in some detail why you’d never want to use jQuery’s deferreds.

Slightly off-topic, but I had some fun a month ago writing up some sample examples of how to (and not to) use promises: http://jsbin.com/OqUWagu/24