Instance Method


Temporarily suspends a task.


- (void)suspend;


A task, while suspended, produces no network traffic and is not subject to timeouts. A download task can continue transferring data at a later time. All other tasks must start over when resumed.

See Also

Controlling the Task State

- cancel

Cancels the task.

- resume

Resumes the task, if it is suspended.


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


Constants for determining the current state of a task.


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).

URL Session Task Priority

Constants for providing task priority hints to a host, used with the priority property.