AllCasePaths
TaskResult.swift:218struct AllCasePaths
struct AllCasePaths
where Success:Sendable
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
.
protocol Sendable
static var allCasePaths: AllCasePaths { get }
var failure: AnyCasePath<TaskResult, any Error> { get }
var success: AnyCasePath<TaskResult, Success> { get }