AnyDatabaseCancellable
public class AnyDatabaseCancellable : DatabaseCancellable
A type-erasing cancellable object that executes a provided closure when canceled.
An AnyDatabaseCancellable instance automatically calls cancel() when deinitialized.
-
Initializes the cancellable object with the given cancel-time closure.
Declaration
Swift
public init(cancel: @escaping () -> Void)
-
Creates a cancellable object that forwards cancellation to the provided cancellable.
Declaration
Swift
public convenience init(_ cancellable: DatabaseCancellable)
-
Declaration
Swift
public func cancel()