callAsync

abstract suspend fun <T, R> callAsync(target: Target, inputSerde: Serde<T>, outputSerde: Serde<R>, parameter: T): Awaitable<R>

Invoke another Restate service method.

Return

an Awaitable that wraps the Restate service method result.

Parameters

target

the address of the callee

inputSerde

Input serde

outputSerde

Output serde

parameter

the invocation request parameter.