Modifying a variable in a thread

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.