Create inner tasks without explicitly provide a async runtime
โ Rust ๐ 2026-01-16 ๐ค surdeus ๐๏ธ 1Iโm building a runtime agnostic mock server, for now, I manage to get it running for the two most popular async runtimes in rust.
The problem is, code is not too much reusable, and thereโs potential to do so, but in order to do that, I canโt simply call something like tokio::spawn, but something like executor.spawn, where executor represents async runtime somehow.
Is that a good path to take? Am I going through wrong path?
4 posts - 2 participants
๐ท๏ธ Rust_feed