ExitCase
public enum ExitCase<E>
Describes the outcome of an operation on a resource.
- completed: The operation was completed successfully.
- canceled: The operation was canceled.
- error: The operation finished with an error.
-
Undocumented
Declaration
Swift
case completed -
Undocumented
Declaration
Swift
case canceled -
Undocumented
Declaration
Swift
case error(E) -
Applies a function based on the content of this value.
Declaration
Swift
public func fold<A>( _ ifCompleted: () -> A, _ ifCanceled: () -> A, _ ifError: (E) -> A) -> AParameters
ifCompletedFunction to be applied if this value is completed.
ifCanceledFunction to be applied if this value is canceled.
ifErrorFunction to be applied if this value is errored.
Return Value
Result of applying the corresponding function based on the content of this value.
-
Declaration
Swift
public var description: String { get }
Install in Dash
ExitCase Enumeration Reference