Working on yet another Rust async runtime, mostly because I'm annoyed by runtimes that are all tied to globals and want to see if we can do it handles passed as function arguments
Are you going to use thread-locals or getting rid of them also? I'm considering removing the global executor from smol so the only two globals would be: 1. the reactor 2. the blocking pool
-
-
Ideally no thread-locals, but we'll see what's possible. My ideal design has all the relevant resources (reactor, pool) live high in the stack (near main) and passed by reference parameter down into the actual async code, but I'm not sure if the lifetimes can be made to work
-
I see - my hunch is that Arcs will be needed to make this practical, but would love to be proven wrong! Btw, I wonder why you want to eliminate all globals?
- 7 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.