Cancellable
public protocol Cancellable
Use this protocol to define cancellable tasks for CancellablePromise.
-
Cancel the associated task
Declaration
Swift
func cancel() -
trueif the task was successfully cancelled,falseotherwiseDeclaration
Swift
var isCancelled: Bool { get }
View on GitHub
Cancellable Protocol Reference