One Logo Pool Ball
Distributed · IOS API REFERENCE

LocalTestingInvocationResultHandler

struct · iOS 16.0+ · SDK 27.1

struct LocalTestingInvocationResultHandler

Members (3)

method · iOS 16.0+

onReturnVoid

TypeScript
onReturnVoid(): Promise<void>
Swift declaration
func onReturnVoid() async throws

Invoked when the distributed target execution of a `Void` returning function has completed successfully.

method · iOS 16.0+

onThrow

TypeScript
onThrow(error: NativeError): Promise<void>
Swift declaration
func onThrow<Err>(error: Err) async throws where Err : Error

Invoked when the distributed target execution of a target has thrown an error. It is not guaranteed that the error conform to the ``SerializationRequirement``; This guarantee is only given to return values (and offered by `onReturn`).

method · iOS 16.0+

onReturn

TypeScript
onReturn(value: number): Promise<void>
Swift declaration
func onReturn<Success>(value: Success) async throws where Success : Decodable, Success : Encodable

Invoked when the distributed target execution returns successfully. The `value` is the return value of the executed distributed invocation target. ### Serialization Requirement Implementations of this method must ensure that the `Success` type parameter conforms to the types' `SerializationRequirement`.

Skipped declarations

No declarations were skipped in this snapshot.

All Distributed types →