<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOUSBHost",
  "identifier" : "/documentation/IOUSBHost/IOUSBHostPipe/setIdleTimeout(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOUSBHost"
    ],
    "preciseIdentifier" : "c:objc(cs)IOUSBHostPipe(im)setIdleTimeout:error:"
  },
  "title" : "setIdleTimeout(_:)"
}
-->

# setIdleTimeout(_:)

Sets the desired idle suspend timeout for the interface.

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

## Parameters

`idleTimeout`

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

## Discussion

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

---

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)