CancellableTask
public protocol CancellableTask
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
otherwiseDeclaration
Swift
var isCancelled: Bool { get }