Amanieu / asyncplusplus

Async++ concurrency framework for C++11
MIT License
1.34k stars 197 forks source link

Chain a subset of tasks #54

Open BotellaA opened 1 year ago

BotellaA commented 1 year ago

I have a container of N Tasks and I would like to add a continuation of n of these N tasks. The problem is that both n and N are only known at runtime. My best idea was to create a vector of reference_wrapper of the n tasks but it does not work.

I understand you do not develop this library anymore but do you have an idea of how to manage this? Or how to modify Async++ to add this feature? Or do you know other libraries that could do it?

Thanks a lot for your help

kikaxa commented 1 year ago

Please see https://github.com/Amanieu/asyncplusplus/wiki/Tasks#composition Does when_all do what you want?