logoalt Hacker News

traderj0eyesterday at 4:37 PM2 repliesview on HN

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.


Replies

tracker1yesterday at 4:41 PM

No, 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.

jen20today at 10:09 AM

True now, but there was a time when async/await was _not_ part of Rust, and a runtime was.