2 ms·
They intentionally removed green threading from Rust long ago, so I would guess they intend to leave it outside core? https://github.com/rust-lang/rfcs/blob/08
by bpicolo 9y ago
They intentionally removed green threading from Rust long ago, so I would guess they intend to leave it outside core?
https://github.com/rust-lang/rfcs/blob/0806be4f282144cfcd55b1d20284b43f87cbe1c6/text/0230-remove-runtime.md https://github.com/rust-lang/rfcs/blob/0806be4f282144cfcd55b...
- lmm 9y agoI think the intention is that userspace schedulers (event loops) will remain outside of core, but core will potentially contain a task interface and know how to form tasks (but not necessarily offer any way to execute them asynchronously) so that there can be better integration of ownership/borrow checking with async tasks? But I haven't been following that closely.
- steveklabnik 9y agoYes, this is basically correct. There's an open RFC to add futures to libcore; https://github.com/rust-lang/rfcs/pull/2395 https://github.com/rust-lang/rfcs/pull/2395 But we have no plans on pulling anything more than that in. > so that there can be better integration of ownership/borrow checking with async tasks? It's more about conventions and stability; traits are a great thing to put in the stdlib so the entire ecosystem can use them as an interface.