StartableResultProvider
public struct StartableResultProvider<Value, Failure> : Sendable where Failure : Error
extension StartableResultProvider: StartableCancelable
StartableResultProvider is an operation that can be started with a completion closure and can be cancelled.
-
Declaration
Swift
public nonisolated var isCancelled: Bool { get } -
Declaration
Swift
public nonisolated func cancel() -
Undocumented
Declaration
Swift
@MainActor public func start(completion: @escaping (Result<Value, Failure>) -> Void)