Instance Method

resume()

Resumes the task, if it is suspended.

Declaration

func resume()

See Also

Controlling the Task State

func cancel()

Cancels the task.

func suspend()

Temporarily suspends a task.

var state: URLSessionTask.State

The current state of the task—active, suspended, in the process of being canceled, or completed.

var priority: Float

The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority).