-
Notifications
You must be signed in to change notification settings - Fork 216
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
Promise.then doesn't wait #293
Comments
How's this, @OliverJAsh? |
Could it be that you're not returning the promise? Try this:
In the original version, nothing is returned, so that nothing gets passed immediately into the second "then". But if you return a promise from a "then", it kind of replaces all of the following "then". I think that's the way the spec says it should wrok. |
@Earl-Brown I am using an arrow function which has an implicit |
Ah ... that makes sense, then. |
when you use arrow function like this (e)=>{//code here} |
i.e.:
bar
will fire beforefoo
.I'm happy to cast the promise using
Promise.resolve
, but can this be documented?The text was updated successfully, but these errors were encountered: