Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: replace generator with async_generator
* replace coroutine::experimental::generator with coroutine::experimental::async_generator * remove the generator related tests in coroutines_test.cc. since we already have tests/unit/generator_test.cc, there are no needs to keep two copies of these tests. * update `experimental_list_directory()` to return `generator<const directory_entry&>`, for better performance, so we can point the promise's value pointer to the yielded value, without copying it using the copy_awaiter. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information