<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/LongRunningTaskOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents22LongRunningTaskOptionsV"
  },
  "title" : "LongRunningTaskOptions"
}
-->

# LongRunningTaskOptions

Options for configuring long-running tasks.

```
struct LongRunningTaskOptions
```

## Overview

When performing long-running tasks, specify these options to indicate additional resource
requirements for the task. Pass these options to the [`performBackgroundTask(options:operation:)`](/documentation/AppIntents/LongRunningIntent/performBackgroundTask(options:operation:))
or [`performBackgroundTask(options:operation:onCancel:)`](/documentation/AppIntents/LongRunningIntent/performBackgroundTask(options:operation:onCancel:)) methods.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)