Cancellable

public protocol Cancellable

A protocol indicating that an operation supports cancellation.

  • Cancel the operation and also stops side effects such as timers, schedulers, network access.

    Declaration

    Swift

    func cancel()