Skip to content

How can we subscribe channel with coroutine? #2128

Answered by mp911de
wangmir asked this question in Q&A
Discussion options

You must be logged in to vote

Subscription and pub/sub consumption are different topics. For subscribing, you use the regular (p)subscribe() methods passing on channel/pattern names. For listening, I recommend using the reactive API where you can obtain a Flow object from a message Flux.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wangmir
Comment options

Answer selected by wangmir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants