Skip to content

Should async-byte-channel work with a Tokio LocalSet? #500

Discussion options

You must be logged in to vote

Argh I found it, I was not calling tokio::task::spawn_local(client_rpc_system); 🤦‍♂️. Adding it to the client task above makes it work with both async-byte-channel and DuplexStream.

Just for my undersatnding: it is intuitive to me that I need to call tokio::task::spawn_local(server_rpc_system); (because the server has to be running, obviously), but why is there a need for the same on the client side?

Replies: 5 comments 1 reply

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
Answer selected by JonasVautherin
Comment options

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

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