TaskDelegate

open class TaskDelegate : NSObject

The task delegate is responsible for handling all delegate callbacks for the underlying task as well as executing all operations attached to the serial operation queue upon task completion.

Properties

  • The serial operation queue used to execute all operations after the task completes.

    Declaration

    Swift

    public let queue: OperationQueue
  • The data returned by the server.

    Declaration

    Swift

    public var data: Data? { get }
  • The error generated throughout the lifecyle of the task.

    Declaration

    Swift

    public var error: Error?