3 ms·
If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?
by mwcampbell 7y ago
If I understand the futures::pending!() macro correctly, one can use that to add a forced yield point in a loop, right?
- steveklabnik 7y agoYes, it creates a future, and then immediately .awaits it.