SessionDataTask
public class SessionDataTask
Represents a session data task in ImageDownloader
. It consists of an underlying URLSessionDataTask
and
an array of TaskCallback
. Multiple TaskCallback
s could be added for a single downloading data task.
-
Represents the type of token which used for cancelling a task.
Declaration
Swift
public typealias CancelToken = Int
-
Downloaded raw data of current task.
Declaration
Swift
public private(set) var mutableData: Data
-
The underlying download task. It is only for debugging purpose when you encountered an error. You should not modify the content of this task or start it yourself.
Declaration
Swift
public let task: URLSessionDataTask