---
title: LongRunningTaskOptions
framework: appintents
role: symbol
role_heading: Structure
path: appintents/longrunningtaskoptions
---

# LongRunningTaskOptions

Options for configuring long-running tasks.

## Declaration

```swift
struct LongRunningTaskOptions
```

## Overview

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:) or performBackgroundTask(options:operation:onCancel:) methods.

## Topics

### Type Properties

- [requiresGPU](appintents/longrunningtaskoptions/requiresgpu.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Performing background tasks

- [performBackgroundTask(options:operation:)](appintents/longrunningintent/performbackgroundtask(options:operation:).md)
- [performBackgroundTask(options:operation:onCancel:)](appintents/longrunningintent/performbackgroundtask(options:operation:oncancel:).md)
