Handle

public protocol Handle : AnyObject

This is a handle to a task that is given to the TaskManager and can be used to control the task.

  • Cancels the task

    Declaration

    Swift

    func cancel()
  • Starts the task if it hasn’t already been started

    Declaration

    Swift

    func start()
  • Retrieves the state of the task

    Declaration

    Swift

    var state: TaskState { get }
  • An auto incrementing ID for the task

    Declaration

    Swift

    var identifier: Int { get }