Skip to content

Simplify usages of withTaskGroup to infer ChildTaskResult type where possible #1102

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stmontgomery
Copy link
Contributor

This adjusts usages of withTaskGroup and withThrowingTaskGroup to take advantage of SE-0442: Allow TaskGroup's ChildTaskResult Type To Be Inferred by inferring the child task result type.

I successfully built this PR using a Swift 6.1 toolchain. A couple usages I did need to leave explicitly specified, but most I was able to simplify.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@stmontgomery stmontgomery added the enhancement New feature or request label May 2, 2025
@stmontgomery stmontgomery added this to the Swift 6.x milestone May 2, 2025
@stmontgomery stmontgomery self-assigned this May 2, 2025
@stmontgomery
Copy link
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant