FlowAdapter

This is an adapter class to convert Wire generated Channel based routines to flow based functions compatible with io.grpc:protoc-gen-grpc-kotlin.

Functions

Link copied to clipboard
fun <I : Any, O : Any> bidiStream(context: CoroutineContext, request: Flow<I>, f: suspend (ReceiveChannel<I>, SendChannel<O>) -> Unit): Flow<O>
Link copied to clipboard
suspend fun <I : Any, O : Any> clientStream(context: CoroutineContext, request: Flow<I>, f: suspend (ReceiveChannel<I>) -> O): O
Link copied to clipboard
fun <I : Any, O : Any> serverStream(context: CoroutineContext, request: I, f: suspend (I, SendChannel<O>) -> Unit): Flow<O>