Skip to content

[6.0] Bring back TaskGroup.next() and ThrowingTaskGroup.next() as public API #73431

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

Merged

Conversation

DougGregor
Copy link
Member

Explanation: A change to introducing next(isolation:) entry points into (Throwing)TaskGroup also removed the API for next(), relying on a default argument to maintain source compatibility for calls to the API. However, this broke protocol conformances that depend on the exact signature of next(), so this pull request brings those APIs back as "disfavored" overloads.
Original PR: #73425
Risk: Low. Adds back APIs whose removal caused a source incompatibility.
Radar/issue: rdar://127499568
Reviewed by: @hborla
Testing: New tests.

DougGregor added 3 commits May 3, 2024 12:35
…c API

With the introduction of `next(isolation:)` into the task group types,
we removed the public APIs for the no-argument `next()` versions,
leaving them only as `@usableFromInline internal` entrypoints for the
ABI. Because the `next(isolation:)` versions have a default argument,
this was sufficient for providing source compatibility for calls, but
not for protocol conformances.

Bring these APIs back publicly. Fixes rdar://127499568.
@DougGregor DougGregor requested a review from a team as a code owner May 3, 2024 20:39
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 316f686 into swiftlang:release/6.0 May 4, 2024
5 checks passed
@DougGregor DougGregor deleted the task-group-next-public-6.0 branch May 4, 2024 07:09
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