Skip to content

How to attach an mpsc channel to a Subscription? #1029

Answered by hecrj
madmaxio asked this question in Q&A
Discussion options

You must be logged in to vote

The channel should be created in Recipe::stream and moved inside the returned Stream. If you want bi-directional communication, you can send tx to the Application as the first message of the subscription.

Replies: 9 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tarkah
Comment options

@madmaxio
Comment options

Comment options

You must be logged in to vote
4 replies
@hecrj
Comment options

@madmaxio
Comment options

@Ciantic
Comment options

@whooie
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hecrj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #1024 on September 07, 2021 11:47.