---
title: JobPriority
framework: swift
role: symbol
role_heading: Structure
path: swift/jobpriority
---

# JobPriority

The priority of this job.

## Declaration

```swift
@frozen struct JobPriority
```

## Overview

Overview The executor determines how priority information affects the way tasks are scheduled. The behavior varies depending on the executor currently being used. Typically, executors attempt to run tasks with a higher priority before tasks with a lower priority. However, the semantics of how priority is treated are left up to each platform and Executor implementation. A ExecutorJob’s priority is roughly equivalent to a TaskPriority, however, since not all jobs are tasks, represented as separate type. Conversions between the two priorities are available as initializers on the respective types.

## Topics

### Operators

- [!=(_:_:)](swift/jobpriority/!=(_:_:).md)

### Initializers

- [init(_:)](swift/jobpriority/init(_:).md)
- [init(rawValue:)](swift/jobpriority/init(rawvalue:).md)

### Instance Properties

- [rawValue](swift/jobpriority/rawvalue-swift.property.md)

### Type Aliases

- [JobPriority.RawValue](swift/jobpriority/rawvalue-swift.typealias.md)

### Default Implementations

- [Comparable Implementations](swift/jobpriority/comparable-implementations.md)
- [Equatable Implementations](swift/jobpriority/equatable-implementations.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Comparable](swift/comparable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Executors

- [Executor](swift/executor.md)
- [ExecutorJob](swift/executorjob.md)
- [SerialExecutor](swift/serialexecutor.md)
- [TaskExecutor](swift/taskexecutor.md)
- [PartialAsyncTask](swift/partialasynctask.md)
- [UnownedJob](swift/unownedjob.md)
- [UnownedSerialExecutor](swift/unownedserialexecutor.md)
- [UnownedTaskExecutor](swift/unownedtaskexecutor.md)
- [globalConcurrentExecutor](swift/globalconcurrentexecutor.md)
- [withTaskExecutorPreference(_:isolation:operation:)](swift/withtaskexecutorpreference(_:isolation:operation:).md)
