-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize lazy collectAll implement #125
Comments
What if the lazy don't contain an Executor when we call collectAllPara(foo())? |
collectAllPara can not run sub coroutines in parallel without executor |
Another problem is that |
em,we can remove using AT = std::conditional_t<
std::is_same_v<LazyType<T>, Lazy<T>>,
detail::SimpleCollectAllAwaitable<T, IAlloc, OAlloc, Para>,
detail::CollectAllAwaiter<LazyType<T>, IAlloc, OAlloc, Para>>; |
Maybe we need to do more work on the interface. The previous design looks not good. |
Search before asking
What happened + What you expected to happen
async_simple/async_simple/coro/Collect.h
Line 229 in ab70389
maybe we can use collectAll(foo().via(executor)) to simplify the collectAllPara, for example: collectAllPara call collectAll(foo().via(executor)) directly
Reproduction way
Anything else
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: