---
title: xpc_transaction_end()
framework: xpc
role: symbol
role_heading: Function
path: xpc/xpc_transaction_end()
---

# xpc_transaction_end()

Informs the XPC runtime when a transaction ends.

## Declaration

```swift
func xpc_transaction_end()
```

## Discussion

Discussion As described in xpc_transaction_begin(), this API may be used interchangeably with vproc_transaction_end(). See the discussion for xpc_transaction_begin() for details regarding the XPC runtime’s idle-exit policy.

## 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_resume(_:)](xpc/xpc_connection_resume(_:).md)
- [xpc_connection_cancel(_:)](xpc/xpc_connection_cancel(_:).md)
- [xpc_transaction_begin()](xpc/xpc_transaction_begin().md)
- [xpc_connection_copy_invalidation_reason(_:)](xpc/xpc_connection_copy_invalidation_reason(_:).md)
