Re:Tokio 1.0 – async runtime for Rust
by octoberfranklin on Wednesday December 23, 2020 @09:31PM
(#25524544)
That's not entirely true. If you want to write an entire standalone application that compiles into a binary and starts up a scheduler, then yes, you have to pick a scheduler runtime.
If you're writing a library to be used by others you can very often expose only types which come from std::futures. The result will work with all of the runtimes.
If you're writing a library to be used by others you can very often expose only types which come from std::futures. The result will work with all of the runtimes.