3 ms·
This is a consequence of runtimes relying on global variables that their core future types are dependent on. Creating abstractions to solve this problem is one
by ibraheemdev 4y ago
This is a consequence of runtimes relying on global variables that their core future types are dependent on. Creating abstractions to solve this problem is one of the main goals of the the async working group [0].
[0]: https://github.com/rust-lang/wg-async https://github.com/rust-lang/wg-async
- stormbrew 4y agoIt would be really interesting to see an executor that didn't rely on global state, but instead had you manage an executor object for these things, and see if it's actually really all that bad. Everyone just kind of jumped straight on doing executors with global state and that design space is just completely unexplored. It would help a lot with being able to discover and define what standard traits might be needed to make leaf async libraries more portable.