---
title: "idleTimeout(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/quic/idletimeout(_:)"
---

# idleTimeout(_:)

Set the idle timeout for the QUIC connection, in milliseconds.

## Declaration

```swift
func idleTimeout(_ timeout: Int) -> QUIC
```

## Parameters

- `timeout`: The idle timeout, in milliseconds.

## Discussion

Discussion If no packets are sent or received within this timeout, the QUIC connection will be closed.
