Instance Propertyswift-composable-architecture 1.18.0ComposableArchitecture
failure
TaskResult.swift:229var failure: AnyCasePath<TaskResult, any Error> { get }
var failure: AnyCasePath<TaskResult, any Error> { get }
s22ComposableArchitecture10TaskResultO12AllCasePathsV7failure0fG4Core03AnyF4PathVyACyxGs5Error_pGvp
What are these?6LRVR
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).
struct AllCasePaths
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
.
@dynamicMemberLookup struct AnyCasePath<Root, Value>
A type-erased case path that supports embedding a value in a root and attempting to extract a root’s embedded value.
protocol Error : Sendable
A type representing an error value that can be thrown.
var success: AnyCasePath<TaskResult, Success> { get }