AnyDatabaseCancellable

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.

  • Creates a cancellable object that forwards cancellation to the provided cancellable.