---
title: "xpc_connection_resume(_:)"
framework: xpc
role: symbol
role_heading: Function
path: "xpc/xpc_connection_resume(_:)"
---

# xpc_connection_resume(_:)

Resumes a suspended connection.

## Declaration

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

## Parameters

- `connection`: The connection object which is to be manipulated.

## Discussion

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

## See Also

### Life cycle

- [xpc_main(_:)](xpc/xpc_main(_:).md)
- [xpc_connection_activate(_:)](xpc/xpc_connection_activate(_:).md)
- [xpc_connection_suspend(_:)](xpc/xpc_connection_suspend(_:).md)
- [xpc_connection_cancel(_:)](xpc/xpc_connection_cancel(_:).md)
- [xpc_transaction_begin()](xpc/xpc_transaction_begin().md)
- [xpc_transaction_end()](xpc/xpc_transaction_end().md)
- [xpc_connection_copy_invalidation_reason(_:)](xpc/xpc_connection_copy_invalidation_reason(_:).md)
