Y
Hacker News
new
|
ask
|
show
|
jobs
by
mwcampbell
2267 days ago
If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?
1 comments
steveklabnik
2267 days ago
Yes, it creates a future, and then immediately .awaits it.
link