Structureswift 6.0.1_Concurrency
JobPriority
The priority of this job.
- iOS
- 17.0+
- macOS
- 14.0+
- tvOS
- 17.0+
- watchOS
- 10.0+
@frozen struct JobPriority
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.
Citizens in _Concurrency
Conformances
protocol BitwiseCopyable
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Sendable
Typealiases
Type members
static func != (lhs: JobPriority, rhs: JobPriority
) -> Bool static func < (lhs: JobPriority, rhs: JobPriority
) -> Bool static func <= (lhs: JobPriority, rhs: JobPriority
) -> Bool static func == (lhs: JobPriority, rhs: JobPriority
) -> Bool static func > (lhs: JobPriority, rhs: JobPriority
) -> Bool static func >= (lhs: JobPriority, rhs: JobPriority
) -> Bool
Instance members
var rawValue: JobPriority.RawValue
The raw priority value.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
static func ... (minimum: Self
) -> PartialRangeFrom<Self> Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self
) -> PartialRangeThrough<Self> Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self
) -> ClosedRange<Self> Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self
) -> PartialRangeUpTo<Self> Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self
) -> Range<Self> Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.