Skip to content

Conversation

@dmethvin
Copy link
Member

Fixes gh-2710

Although we could add a new feature to notify on the new Deferred once each thenable resolved/rejected, it seemed like that would encourage more Deferred-specific behavior and I wasn't sure I wanted to go there. The important 3.0 behavior change here is removing the notification pass-through, which was undocumented. We can always add new functionality in a 3.x.0 if it's requested.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @markelog, @gibson042 and @jaubourg to be potential reviewers

Copy link
Member

Choose a reason for hiding this comment

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

We currently don't have tests for progress in $.when

So we do have tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes we did. However, the docs say nothing about it, and it seems strange to pass through the notifications from the subordinates all mixed into the master deferred.

@gibson042
Copy link
Member

This looks pretty good to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Technically this could just be length but it seemed clearer to leave it this way.

@gibson042
Copy link
Member

LGTM.

@dmethvin dmethvin closed this in bdf1b8f Jan 13, 2016
@dmethvin dmethvin deleted the 2710-when-progress branch May 24, 2016 19:07
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

$.when + progress

6 participants