Skip to content

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Oct 10, 2025

Pending SE evolution: swiftlang/swift-evolution#2990

This makes Task.init and friends adopt typed throws, and also drops discardable result from the throwing APIs

@ktoso ktoso added swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review concurrency Feature: umbrella label for concurrency language features labels Oct 10, 2025
@ktoso
Copy link
Contributor Author

ktoso commented Oct 10, 2025

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-task-init-typed-throws branch from b483a47 to ea17a92 Compare October 10, 2025 09:25
@ktoso
Copy link
Contributor Author

ktoso commented Oct 10, 2025

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Oct 10, 2025

@swift-ci please smoke test

Comment on lines -192 to +196
return .failure(error as! Failure) // as!-safe, guaranteed to be Failure
return .failure(error) // as!-safe, guaranteed to be Failure
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment now refers to a force cast that has moved elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

concurrency Feature: umbrella label for concurrency language features swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants