| std::future is stable. Async/await in about 12 weeks. Been writing loads of code, trying out the new futures and especially the possibility to use &self in an async context is a huge benefit. Beware though to use an executor that can drive the new futures and watch out certain libraries using `tokio::spawn` , which will cause panics. Some executors for the new futures: https://docs.rs/futures-preview/0.3.0-alpha.17/futures/execu... https://github.com/withoutboats/juliex And a web server to try out async/await on nightly: https://github.com/rustasync/tide Compatibility layer from 0.1 to 0.3 and back is in futures-util-preview if compiled with the feature flag `compat`. https://docs.rs/futures-util-preview/0.3.0-alpha.17/futures_... |
It's based mostly on this article, which predates std::future: https://www.viget.com/articles/understanding-futures-in-rust...