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

    Typealiases

    Type members

    Instance members

    Type features