---
title: timeout
framework: linkpresentation
role: symbol
role_heading: Instance Property
path: linkpresentation/lpmetadataprovider/timeout
---

# timeout

The time interval after which the request automatically fails if it hasn’t already completed.

## Declaration

```swift
var timeout: TimeInterval { get set }
```

## Discussion

Discussion The default timeout interval is 30 seconds. If a metadata fetch takes longer than the timeout interval, the completion handler is called with the error code LPError.Code.metadataFetchTimedOut.

## See Also

### Fetching metadata

- [startFetchingMetadata(for:completionHandler:)](linkpresentation/lpmetadataprovider/startfetchingmetadata(for:completionhandler:)-54z5i.md)
- [cancel()](linkpresentation/lpmetadataprovider/cancel().md)
- [shouldFetchSubresources](linkpresentation/lpmetadataprovider/shouldfetchsubresources.md)
