<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UnownedJob",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:ScJ"
  },
  "title" : "UnownedJob"
}
-->

# UnownedJob

A unit of schedulable work.

```
@frozen struct UnownedJob
```

## Overview

Unless you’re implementing a scheduler,
you don’t generally interact with jobs directly.

An `UnownedJob` must be eventually run *exactly once* using `runSynchronously(on:)`.
Not doing so is effectively going to leak and “hang” the work that the job represents (e.g. a [`Task`](/documentation/Swift/Task)).

## Topics

### Initializers

[`init(ExecutorJob)`](/documentation/Swift/UnownedJob/init(_:)-8ra8c)

Create an `UnownedJob` whose lifetime must be managed carefully until it is run exactly once.

[`init(Job)`](/documentation/Swift/UnownedJob/init(_:)-9f1zn)

Create an `UnownedJob` whose lifetime must be managed carefully until it is run exactly once.

### Instance Properties

[`var priority: JobPriority`](/documentation/Swift/UnownedJob/priority)

The priority of this job.

### Instance Methods

[`func runSynchronously(isolatedTo: UnownedSerialExecutor, taskExecutor: UnownedTaskExecutor)`](/documentation/Swift/UnownedJob/runSynchronously(isolatedTo:taskExecutor:))

Run this job isolated to the passed in serial executor, while executing it on the specified task executor.

[`func runSynchronously(on: UnownedTaskExecutor)`](/documentation/Swift/UnownedJob/runSynchronously(on:)-4eaxu)

Run this job isolated to the passed task executor.

[`func runSynchronously(on: UnownedSerialExecutor)`](/documentation/Swift/UnownedJob/runSynchronously(on:)-o1nb)

Run this job on the passed in executor.

### Default Implementations

[CustomStringConvertible Implementations](/documentation/Swift/UnownedJob/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)