Create inner tasks without explicitly provide a async runtime

โš“ Rust    ๐Ÿ“… 2026-01-16    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

Iโ€™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

Read full topic

๐Ÿท๏ธ Rust_feed