Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mwcampbell
on March 31, 2020
|
parent
|
context
|
favorite
| on:
Writing an OS in Rust: Async/Await
If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?
steveklabnik
on March 31, 2020
[–]
Yes, it creates a future, and then immediately .awaits it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: