Cancellable

public protocol Cancellable

Use this protocol to define cancellable tasks for CancellablePromise.

  • Cancel the associated task

    Declaration

    Swift

    func cancel()
  • true if the task was successfully cancelled, false otherwise

    Declaration

    Swift

    var isCancelled: Bool { get }