3 ms·
Rust does have a standard futures runtime API (edit: thinking over, maybe you meant there should be a runtime in std) This then opens up alternative runtimes t
by __s 5y ago
Rust does have a standard futures runtime API (edit: thinking over, maybe you meant there should be a runtime in std)
This then opens up alternative runtimes to tokio (async-std, smol, glommio, monoio)
Then your suggestion of a single threaded executor exists already: https://github.com/enlightware/simple-async-local-executor https://github.com/enlightware/simple-async-local-executor
Granted, in practice many libraries end up building a hard dependency on tokio