<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/DocumentReadingOptionKey/timeout",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation",
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSTimeoutDocumentOption"
  },
  "title" : "timeout"
}
-->

# timeout

The time, in seconds, to wait for a document to finish loading.

```
static let timeout: NSAttributedString.DocumentReadingOptionKey
```

## Discussion

The value is an [`NSNumber`](/documentation/Foundation/NSNumber) object containing a float. The previous string constant was `@"Timeout"`.

---

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)