Skip to content

What is the ideal data structure to send task/data between the async context and a dedicated thread? #6522

Answered by Darksonn
cjwcommuny asked this question in Q&A
Discussion options

You must be logged in to vote

I would generally recommend using things from tokio::sync unless you have a good reason not to. So in this case, I recommend tokio::sync::mpsc over some other mpsc channel.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cjwcommuny
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