2 ms·
Er yeah technically the event loop isn't part of Rust, just the async/await syntax. But it's implied that you're going to use some event loop with it.
by traderj0e 6mo ago
Er yeah technically the event loop isn't part of Rust, just the async/await syntax. But it's implied that you're going to use some event loop with it.
- tracker1 6mo agoNo, it's implied that you're going to use some sort of async runtime with it... said runtime can be simple real threads, a thread pool or virtual threads and there are implementations for all of them. And even then, it's super easy to start a new real thread in rust, around any async runtime.
- jen20 6mo agoWhile true, this isn’t what I’m talking about: Rust had _built in_ green threads at one point, the same as Go [1]. [1]: https://rust-lang.github.io/rfcs/0230-remove-runtime.html https://rust-lang.github.io/rfcs/0230-remove-runtime.html
- jen20 6mo agoTrue now, but there was a time when async/await was _not_ part of Rust, and a runtime was.