Enumeration Case

NSURLSessionTaskStateCanceling

The task has received a cancel message.

Declaration

NSURLSessionTaskStateCanceling = 2

Discussion

The delegate may or may not have received a URLSession:task:didCompleteWithError: message yet. A task in this state is not subject to timeouts.

See Also

Task States

NSURLSessionTaskStateRunning

The task is currently being serviced by the session.

NSURLSessionTaskStateSuspended

The task was suspended by the app.

NSURLSessionTaskStateCompleted

The task has completed (without being canceled), and the task's delegate receives no further callbacks.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software