Cancellable

public protocol Cancellable

Protocol to define the opaque type returned from a request.

  • A Boolean value stating whether a request is cancelled.

    Declaration

    Swift

    var isCancelled: Bool { get }
  • Cancels the represented request.

    Declaration

    Swift

    func cancel()