---
title: "onReturn(value:)"
framework: distributed
role: symbol
role_heading: Instance Method
path: "distributed/distributedtargetinvocationresulthandler/onreturn(value:)"
---

# onReturn(value:)

Invoked when the distributed target execution returns successfully. The value is the return value of the executed distributed invocation target.

## Declaration

```swift
func onReturn<Success>(value: Success) async throws
```

## Serialization Requirement

Serialization Requirement Implementations of this method must ensure that the Success type parameter conforms to the types’ SerializationRequirement.
