Question: The doc says The spawned task may execute on the current thread, or it may be sent to a different thread to be executed. So if you share a variable which is !Sync between two async blocks and spawn ...

Question: I stuck with proper handling panics in case of tokio::net::TcpStream or in playground Can guru teach me how to catch these errors like thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: Os { code: 101, kind: NetworkUnreachable, ...

Question: Although the code compiles, I don’t understand why when using await directly it gets stuck in the first request. Why do I need to use the method execute_requests instead of calling it on the Future implementation? Rust Playground EDITED: ...

Question: What I’m trying to do is save all JobHandles in a vector and after iterating an X amount of time I want to await them all. I’m doing this because the endpoint I’m sending requests too will return a ...