You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I run this example in a working thread. the function count_even returned without waiting "co_await result". How cound I changed the code to fix it?
for (auto& result : chunk_count) {
total_count += co_await result;
}
co_return total_count;
I have found the problem. The working thread caller should't be created by thread_pool_executor or background_executor, thread_executor is OK. But why?
The text was updated successfully, but these errors were encountered:
hongxinGuo
changed the title
example 2_concurrent_even_number_counting don't functionally in VS2022
example 2_concurrent_even_number_counting don't functionally in working thread
Feb 28, 2024
Hi,
I run this example in a working thread. the function count_even returned without waiting "co_await result". How cound I changed the code to fix it?
I have found the problem. The working thread caller should't be created by thread_pool_executor or background_executor, thread_executor is OK. But why?
The text was updated successfully, but these errors were encountered: