Skip to content

Make ThrowingTaskGroup.nextResult() non-throwing. #38772

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

DougGregor
Copy link
Member

Explanation: We erroneously marked ThrowingTaskGroup.nextResult() as throws, even though it returns its error via a Result instead. Remove the throws in a strange-looking manner so that we maintain the existing ABI.
Scope: Affects new code using Swift's Concurrency model that uses task groups.
Radar/SR Issue: rdar://81585954.
Risk: Low.
Reviewed By: Konrad Malawski
Testing: PR testing and CI on main, including new tests.
Original PR: #38771

We erroneously marked this API as `throws`, even though it returns its
error via a `Result` instead. Remove the `throws` in a strange-looking
manner so that we maintain the existing ABI.

Fixes rdar://81585954.
@DougGregor DougGregor added the r5.5 label Aug 6, 2021
@DougGregor DougGregor requested a review from a team as a code owner August 6, 2021 00:13
@DougGregor
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@DougGregor DougGregor merged commit e44a4f1 into swiftlang:release/5.5 Aug 10, 2021
@DougGregor DougGregor deleted the task-group-non-throwing-next-result-5.5 branch August 10, 2021 20:09
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants