---
title: URL session task priority
framework: foundation
role: collectionGroup
role_heading: API Collection
path: foundation/url-session-task-priority
---

# URL session task priority

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

## Topics

### Priority constants

- [defaultPriority](foundation/urlsessiontask/defaultpriority.md)
- [lowPriority](foundation/urlsessiontask/lowpriority.md)
- [highPriority](foundation/urlsessiontask/highpriority.md)

## See Also

### Controlling the task state

- [cancel()](foundation/urlsessiontask/cancel().md)
- [resume()](foundation/urlsessiontask/resume().md)
- [suspend()](foundation/urlsessiontask/suspend().md)
- [state](foundation/urlsessiontask/state-swift.property.md)
- [URLSessionTask.State](foundation/urlsessiontask/state-swift.enum.md)
- [priority](foundation/urlsessiontask/priority.md)
