Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?


Yes, it creates a future, and then immediately .awaits it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: