Vinay Pothnis
02/17/2022, 5:58 AMoverride fun listThings(request: SomeRequest): Flow<Thing> = flow {
// Would like to emit() a `Thing` based on messages received on a subscription
// for example, in the `onMessage` method of a message listener
}
I would like to emit()
a response/message on the gRPC stream - but I would like to drive that based on messages from a subscription.
How do I tie the onMessage
on the message listener and this gRPC handler together?