Should we still use RSVP instead of native Promises?

I have seen a couple of posts on the matter, like these two:

However, they are quite old. Does it still hold true that I should use RSVP Promises with Ember, or can I slowly start to replace all usage of RSVP by native Promise's?

You can safely use native promises everywhere in Ember.

As you port old code, the one thing you may need to change is some tests. Unresolved RSVP promises cause the app be not settled, so tests will automatically wait for them to resolve. Native promises don’t do that.

The difference was intentional: you have more control now to decide which things should block tests from moving forward and which ones don’t. See @ember/test-waiters for API to customize which things in your app should always cause tests to wait.

5 Likes