-
-
Notifications
You must be signed in to change notification settings - Fork 150
Revert automatic cancellation of pending collection promises #61
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
Conversation
CHANGELOG.md
Outdated
| * 2.4.2 (xxxx-xx-xx) | ||
|
|
||
| * Revert automatic cancellation of pending collection promises once the | ||
| output promise resolves. This was introduced in 42d86b7 and was both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
42d86b7 should probably be replaced with a version tag and/or PR as these are more accessible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been 1 commit from the #36 PR, so i decided to use the commit. Will add the PR and version 👍
|
BC breaks is certainly something we want to avoid and it probably makes sense to revert this 👍 I'm unsure if the behavior the original change did introduce is not something others could possibly depend on, thus making this a BC break again :) Does it make sense to preserve both behaviors through a toggle as originally discussed? |
|
Good point, i'd like to avoid adding some toggle parameters to the function signatures though. I'd propose adding notes both to the changelog and the readme to explain the behavior change and how to keep the automatic cancellation. What do you think? |
I understand this, but I'd like to hear some more thoughts on this. Personally, I've used a very similar cancellation behavior in https://github.com/clue/php-block-react#awaitall. While this may be handy at times, this is not something that must be implemented in this promise library. My position would be: I feel that it may make sense to keep both here, do we have any good reasons against this? The changelog looks good to me (though the release tag may still be subject to discussion) 👍 |
According to semver, reverting a BC break should go into a new minor version.
I'd rather add a
Yes, thanks for the hint. Fixed the version. 👍 |
|
I'd like to make progress on this. Any thoughts on this? Ping @cboden @WyriHaximus @clue |
WyriHaximus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
This reverts automatic cancellation of pending collection promises once the output promise resolves. This was introduced in 42d86b7 and was both unintended and backward incompatible.
Note: This is for 2.x