Enumeration Case

URLSessionTask.State.completed

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

Declaration

case completed = 3

Discussion

If the task completed successfully, the task’s error property is nil. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts.

See Also

Task States

case running

The task is currently being serviced by the session.

case suspended

The task was suspended by the app.

case canceling

The task has received a cancel message.

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