TaskHandle
public protocol TaskHandle : AnyObject
Handle used for the manipulation of the task.
-
Completion indication.
Declaration
Swift
var isFinished: Bool { get } -
Completion indication.
Declaration
Swift
var isCancelled: Bool { get } -
Sets internal state of task to ‘canceled’. If the task is still in the queue, it will be removed from it immediately. However, if the task is in a running state, it will nevertheless be completed, as there is no way to interrupt it.
Declaration
Swift
func cancel() -> BoolReturn Value
True, if the task was canceled. False, if the task can’t be canceled due to a platform dependent reason.