clientStreamBlocking

inline fun <S : Any, R : Any> GrpcClientStreamingCall<S, R>.clientStreamBlocking(crossinline block: MessageSink<S>.() -> Unit): R

Executes a blocking Client Streaming RPC call In this use case, all outbound request messages are sent before the inbound response message.

Return

The single response from the server

Parameters

block

A function that will be called with a MessageSink that the caller can use to send requests to the server. The sink will automatically be closed when the block completes.