bidirectional Stream Blocking
inline fun <S : Any, R : Any> GrpcStreamingCall<S, R>.bidirectionalStreamBlocking(crossinline block: (MessageSink<S>, MessageSource<R>) -> Unit): MessageSource<R>
Executes a blocking Bidirectional Streaming RPC call In this use case, you are free to interleave request and response messages. The caller can optionally send and receive messages in the supplied block or after the block completes in the returned MessageSource.
Return
The MessageSource that will receive the server's streaming response. The caller can optionally consume server responses from this channel.
Parameters
block
A function that will be called with a MessageSink and MessageSource that the caller can use to send requests to the server and consume responses from the server. The send channel will automatically be closed when the block completes.