Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Ember.RSVP.cast is not documented #13984

Closed
chadhietala opened this issue Aug 1, 2016 · 2 comments
Closed

[DOCS] Ember.RSVP.cast is not documented #13984

chadhietala opened this issue Aug 1, 2016 · 2 comments

Comments

@chadhietala
Copy link
Contributor

No description provided.

@rwjblue
Copy link
Member

rwjblue commented Aug 1, 2016

RSVP.cast is just Ember.RSVP.resolve AFAIK (see here). I think Ember.RSVP.Promise.resolve would be preferred over either, but @stefanpenner should chime in to confirm/deny...

@stefanpenner
Copy link
Member

stefanpenner commented Aug 1, 2016

cast is dead, don't use it, as 100% of cast usages can be expressed as Promise.resolve. It exists purely as a deprecated compat thing.

It was part of early days of the spec, Promise.cast and Promise.resolve where two different algorithms. But it was decided, that in all cases we would prefer Promise.cast algorithm but using the Promise.resolve name.

NetForce1 added a commit to NetForce1/ember.js that referenced this issue Jul 21, 2017
cast is dead (see: emberjs#13984), and should be replaced with resolve
NetForce1 added a commit to NetForce1/ember.js that referenced this issue Jul 21, 2017
cast is dead (see: emberjs#13984), and should be replaced with resolve
rwjblue pushed a commit that referenced this issue Aug 31, 2017
cast is dead (see: #13984), and should be replaced with resolve
(cherry picked from commit d006a79)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants