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

Adding support for whenSettled to DeferredManager (Promise.allSettled) #118

Closed
wants to merge 7 commits into from

Conversation

mrmaffen
Copy link
Contributor

@mrmaffen mrmaffen commented Aug 6, 2017

Hey,

in addition to my codestyle PR I have added support for whenSettled to DeferredManager and its children. This is basically equivalent to Promise.allSettled. whenSettled waits for all Promises to either get resolved or rejected and then returns all results in the correct order.

Current functionality should remain untouched by my commits.

I have compiled and tested jdeferred in my Android App project.


This change is Reviewable

@saturnism
Copy link
Member

This is nice! We'll likely move this to 2.x. It's on the roadmap here:
#115

That being said, some of the breaking changes were significant. Would it be possible to only have whenSettled(...) method for the 2.x branch?

@aalmiray
Copy link
Contributor

Indeed, the changes make more sense for the 2.x branch

@mrmaffen
Copy link
Contributor Author

@saturnism There shouldn't be any breaking changes. Which changes are you referring to?

@aalmiray
Copy link
Contributor

I believe @saturnism is referring to the breaking changes we made in the 2.x branch where we would like the whenSettled feature to be merged first. We'd like to ask you to rebase your changes against the 2.x branch and resubmit. Thank you 😄

@saturnism
Copy link
Member

This is implemented by @aalmiray in #128 :D Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants