[SR-12930] Add protocol extension to "Result where Success == Void" so that we can use .success() #55376
Labels
good first issue
Good for newcomers
improvement
standard library
Area: Standard library umbrella
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 176bf2fbbef4e6b7e54e92d66bdb68aa
Issue Description:
Currently, to signal a success of type Result<Void, Swift.Error>, we need to use:
.success(())
Combine, for example, special-cases Subject for when the Output is of type Void:
A similar extension could be added for `Result` so that we can use .success(()) instead:
I'd be happy to contribute a patch if someone can point me to the proper PR policy.
The text was updated successfully, but these errors were encountered: