<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_connection_resume(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@F@xpc_connection_resume"
  },
  "title" : "xpc_connection_resume(_:)"
}
-->

# xpc_connection_resume(_:)

Resumes a suspended connection.

```
func xpc_connection_resume(_ connection: xpc_connection_t)
```

## Parameters

`connection`

The connection object which is to be manipulated.

## Discussion

In order for a connection to become live, every call to [`xpc_connection_suspend(_:)`](/documentation/XPC/xpc_connection_suspend(_:)) must be balanced with a call to [`xpc_connection_resume(_:)`](/documentation/XPC/xpc_connection_resume(_:)) after the initial call to [`xpc_connection_resume(_:)`](/documentation/XPC/xpc_connection_resume(_:)). After the initial resume of the connection, calling [`xpc_connection_resume(_:)`](/documentation/XPC/xpc_connection_resume(_:)) more times than [`xpc_connection_suspend(_:)`](/documentation/XPC/xpc_connection_suspend(_:)) has been called is considered an error.

---

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)