---
title: "handoffReply(to:_:)"
framework: xpc
role: symbol
role_heading: Instance Method
path: "xpc/xpcreceivedmessage/handoffreply(to:_:)"
---

# handoffReply(to:_:)

Informs the system when message processing and response continues in a separate dispatch queue.

## Declaration

```swift
@preconcurrency func handoffReply(to queue: DispatchQueue, _ continuation: @escaping @Sendable () -> Void) -> (any Encodable)?
```

## Parameters

- `queue`: The dispatch queue where message processing continues. The queue must be an immutible queue hierarchy.
- `continuation`: The closure to perform on queue.

## Return Value

Return Value This method always returns nil, allowing a message handler closure to return a value.

## Discussion

Discussion You can only call this method from the context of a message handler closure, or from a continuation closure passed to handoffReply(to:_:).

## See Also

### Replying to messages

- [expectsReply](xpc/xpcreceivedmessage/expectsreply.md)
- [reply(_:)](xpc/xpcreceivedmessage/reply(_:).md)
