News for hackers. Stuff that matters.
Re:Writing an OS in Rust: Async/Await by mwcampbell on Tuesday March 31, 2020 @08:55AM (#22737013)
If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?
Re:Writing an OS in Rust: Async/Await by steveklabnik on Tuesday March 31, 2020 @10:20AM (#22737738)
Yes, it creates a future, and then immediately .awaits it.