Hello, I'm trying to use Lettuce reactive with cor...
# coroutines
t
Hello, I'm trying to use Lettuce reactive with coroutines for pub/sub and in their wiki (https://github.com/lettuce-io/lettuce-core/wiki/Pub-Sub#reactive-api) they say you can subscribe to a channel with
client.subscribe(...).subscribe()
. I tried doing
client.subscribe(...).awaitFirstOrNull()
(extension function from
kotlinx.coroutines.reactor
), but it hangs indefinitely, so I thought perhaps I was using the wrong reactive->coro helper. Which one should I use? Thank you.
132 Views