Open nrc opened 2 years ago
I do not think we should expose an executor for std. My main concern is that this will become the standard around which other things will be coupled, making it harder for other runtimes which do IO using different interfaces for example, to integrate with the ecosystem.
There are many areas of friction around async runtimes, lets try and smooth things out!
Some things that I'm aware of:
async fn main
and async tests without a proc macro (this is a pretty complex requirement and ties in with how an async runtime is specified. In particular, I would want to use the specified runtime (rather than a default one) if one has been specified, but what should be used for tests for libraries which should be runtime agnostic? We might want to facilitate running some tests multiple times with different runtimes, or use a special runtime or...)block_on
but notspawn
be ok? Do we need to support IO?Open issues