<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/CrashDiagnostic/TerminationCategory-swift.struct/taskTimeout",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit15CrashDiagnosticV19TerminationCategoryV11taskTimeoutAEvpZ"
  },
  "title" : "taskTimeout"
}
-->

# taskTimeout

The app was terminated for exceeding the allocated time for a background task.

```
static let taskTimeout: CrashDiagnostic.TerminationCategory
```

## Discussion

Corresponds to [`taskTimeoutTerminationCount`](/documentation/MetricKit/BackgroundTerminationMetric/taskTimeoutTerminationCount).

---

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)