---
title: "setIdleTimeout(_:)"
framework: iousbhost
role: symbol
role_heading: Instance Method
path: "iousbhost/iousbhostinterface/setidletimeout(_:)"
---

# setIdleTimeout(_:)

Sets the desired idle suspend timeout for the interface.

## Declaration

```swift
func setIdleTimeout(_ idleTimeout: TimeInterval) throws
```

## Parameters

- `idleTimeout`: The amount of time after all pipes are idle to wait before suspending the device.

## Discussion

Discussion After the interface idles, it defers electrical suspension of the device for the specified duration.

## See Also

### Enabling Power Savings

- [idleTimeout](iousbhost/iousbhostinterface/idletimeout.md)
