[6.4] Asynchronous Catching Result initializer - #89157
Merged
ktoso merged 1 commit intoMay 30, 2026
Merged
Conversation
Cherry-pick of swiftlang#88465 (squashed) onto release/6.4.x. Implements the asynchronous catching `Result.init(catching:)` introduced in swiftlang/swift-evolution#3234 (SE approved). The new initializer lives in stdlib/public/Concurrency/Result+AsyncInit.swift and is `@_alwaysEmitIntoClient` + `nonisolated(nonsending)` with typed throws. The corresponding stdlib test exercises the new API and is currently gated off on wasi-wasm32 due to a runtime/IRGen miscompile tracked at swiftlang#89155. Original PR: swiftlang#88465
Contributor
Author
|
@swift-ci please smoke test |
Contributor
Author
|
@swift-ci please test |
Contributor
Author
|
Depends on #89416 We decided to merge now, and wasm has more time to land a fix later on. |
ktoso
enabled auto-merge (squash)
May 30, 2026 00:47
ktoso
disabled auto-merge
May 30, 2026 00:48
DougGregor
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation:
Adds
init(catching:)withasyncclosure to theResulttype.This was pitched and accepted in swiftlang/swift-evolution#3234
Risk: Low, this is purely additional.
Testing: New test coverage. We'll also tun source compatibility suite.
Original PR: #88465
Reviewed by: @ktoso (original PR by @mattmassicotte)
Issues:
Resolves rdar://102379069