Initializerswift 6.2.4_Concurrency
init(_:)
Create an UnownedJob whose lifetime must be managed carefully until it is run exactly once.
- iOS
- 17.0+
- macOS
- 14.0+
- tvOS
- 17.0+
- watchOS
- 10.0+
init(_ job: ExecutorJob) Create an UnownedJob whose lifetime must be managed carefully until it is run exactly once.
init(_ job: ExecutorJob) import _Concurrency@frozen struct UnownedJobA unit of schedulable work.
@frozen struct ExecutorJobA unit of schedulable work.
init(_ job: Job) Create an UnownedJob whose lifetime must be managed carefully until it is run exactly once.
var description: String { get }var priority: JobPriority { get }The priority of this job.
func runSynchronously(isolatedTo serialExecutor: UnownedSerialExecutor, taskExecutor: UnownedTaskExecutor) Run this job isolated to the passed in serial executor, while executing it on the specified task executor.
func runSynchronously(on executor: UnownedTaskExecutor) Run this job isolated to the passed task executor.
func runSynchronously(on executor: UnownedSerialExecutor) Run this job on the passed in executor.