3 ms·
True! However, I believe rust has a separate, distinct yield/generator functionality coming that should address those needs separately. I think off-hand it’d be
by drb91 8y ago
True! However, I believe rust has a separate, distinct yield/generator functionality coming that should address those needs separately. I think off-hand it’d be pretty easy to wrap them in a stream, or to join a stream into a generator, if you did want to compose them.
- steveklabnik 8y agoThat’s correct; async/await uses Generators under the hood, but we haven’t stabilized them yet. It’s the plan to though!