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?
Ember.RSVP.Promise is definitely the way to go. There are many pieces of Ember internals that rely on Promise objects.
1 Like
OK, thanks. I also find it a bit more convenient to use.
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
2 Likes