Skip to content

Added all settled blog post#34

Open
steaks wants to merge 60 commits intomasterfrom
allSettled
Open

Added all settled blog post#34
steaks wants to merge 60 commits intomasterfrom
allSettled

Conversation

@steaks
Copy link
Copy Markdown
Owner

@steaks steaks commented Mar 25, 2015

No description provided.

madelson and others added 30 commits March 6, 2014 07:49
… most of the content I want to express but could use a fair amount polish
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One difference between this and C#'s Task.WhenAll() is that it looks like the promise returned by allSettled will be fulfilled regardless of whether the underlying promises are fulfilled or rejected. The .NET API marks the wrapper task as faulted if any of the underlying tasks are faulted.

I'm not saying you should change the implementatin, but it's probably worth calling this out and why you like the behavior as is.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$q.all is provided by default and does exactly what you describe. I use $q.all a lot and think it's more useful than $q.allSettled. But I'll call out the differences between $q.all and $q.allSettled.

@madelson
Copy link
Copy Markdown
Collaborator

👍

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.

2 participants