Comment Comment by Pauan No, tokio does not require your Futures to be thread-safe.Every executor (including tokio) provides a `spawn_local` function that spawns Futures on the current thread, so they don't need to be Send:https://docs.rs/tokio/1.32.0/tokio/task/fn.spawn_local.htmlI have used Rust async extensively, and it works great. I consider Rust's Future system to be superior to JS Promises. parent Pauan 3 years ago
Every executor (including tokio) provides a `spawn_local` function that spawns Futures on the current thread, so they don't need to be Send:
https://docs.rs/tokio/1.32.0/tokio/task/fn.spawn_local.html
I have used Rust async extensively, and it works great. I consider Rust's Future system to be superior to JS Promises.