Enumeration Caseswift-composable-architecture 1.18.0ComposableArchitecture
success(_:)
A success, storing a Success
value.
- iOS
- deprecated
- macOS
- deprecated
- tvOS
- deprecated
- watchOS
- deprecated
case success(Success)
A success, storing a Success
value.
case success(Success)
s22ComposableArchitecture10TaskResultO7successyACyxGxcAEms8SendableRzlF
What are these?3LDZ0
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
enum TaskResult<Success> where Success : Sendable
A value that represents either a success or a failure. This type differs from Swift’s Result
type in that it uses only one generic for the success case, leaving the failure case as an untyped Error
.
case failure(any Error)
A failure, storing an error.