No, I don't know. Obviously my code doesn't work and I have to change it. I intend to post a new question about this in a while. Be so kind and have a look at it.
I've posted a new question: Handling async function in a thread - #4 by H2CO3. The issue is solved, but the question describes my design more correctly. If I can do it better with a tokio thread, I would be grateful for some details. I am quite new to Rust and need a push in the right direction.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.