AnyCancellable
public final class AnyCancellable : Cancellable
A concrete implementation of the Cancellable protocol.
-
Declaration
Swift
public static func == (lhs: AnyCancellable, rhs: AnyCancellable) -> Bool -
Initialise a new
AnyCancellablethat wraps the provided cancellable.This object will not call
cancelwhen deinitialised to allow the wrappedCancellableto be stored independently of the wrapper.Declaration
Swift
public init<Cancellable>(_ cancellable: Cancellable) where Cancellable : CancellableParameters
cancellableThe
Cancellableto wrap. -
Declaration
Swift
public func cancel() -
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
AnyCancellable Class Reference