call

open suspend fun <T, R> call(target: Target, inputSerde: Serde<T>, outputSerde: Serde<R>, parameter: T): R

Invoke another Restate service method and wait for the response. Same as call(methodDescriptor, parameter).await().

Return

the invocation response.

Parameters

target

the address of the callee

inputSerde

Input serde

outputSerde

Output serde

parameter

the invocation request parameter.