Skip to content

[Concurrency] Adopt typed throws in Task creation APIs#86358

Closed
mattmassicotte wants to merge 3 commits intoswiftlang:mainfrom
mattmassicotte:feature/task-init-improvements
Closed

[Concurrency] Adopt typed throws in Task creation APIs#86358
mattmassicotte wants to merge 3 commits intoswiftlang:mainfrom
mattmassicotte:feature/task-init-improvements

Conversation

@mattmassicotte
Copy link
Copy Markdown
Contributor

@mattmassicotte mattmassicotte commented Jan 7, 2026

This is another shot at #84802
The associated proposal is here: swiftlang/swift-evolution#2990

Adopts typed throws into the suite of Task creation APIs. Also, per the proposal, this removes @discardableResult from the variants that have a non-Never error.

@mattmassicotte mattmassicotte requested a review from ktoso as a code owner January 7, 2026 20:38
@mattmassicotte mattmassicotte marked this pull request as draft January 7, 2026 20:49
@Catfish-Man
Copy link
Copy Markdown
Contributor

@swift-ci please smoke test

@mattmassicotte
Copy link
Copy Markdown
Contributor Author

smoke test failed because the change introduced a compiler crash when compiling "swift-tools-protocols"

@ktoso
Copy link
Copy Markdown
Contributor

ktoso commented Jan 9, 2026

Depends on #86400

@mattmassicotte mattmassicotte force-pushed the feature/task-init-improvements branch from 249d3aa to 7ed8442 Compare January 9, 2026 21:15
@Catfish-Man
Copy link
Copy Markdown
Contributor

@swift-ci please smoke test

@mattmassicotte
Copy link
Copy Markdown
Contributor Author

I've now rebased against main to pick up the fix from #86400

@mattmassicotte
Copy link
Copy Markdown
Contributor Author

Failure on Windows, x86_64-unknown-windows-msvc/Dispatch. This cannot be due to these changes could it?

@ktoso
Copy link
Copy Markdown
Contributor

ktoso commented Jan 10, 2026

@swift-ci please smoke test

@mattmassicotte mattmassicotte changed the title [Concurrency] Task creation API improvements [Concurrency] Adopt typed throws in Task creation APIs Jan 10, 2026
@mattmassicotte mattmassicotte marked this pull request as ready for review January 10, 2026 17:15
@mattmassicotte
Copy link
Copy Markdown
Contributor Author

In the end, deferring back to #84802.

@mattmassicotte mattmassicotte deleted the feature/task-init-improvements branch January 13, 2026 01:11
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.

3 participants