asyncplusplus icon indicating copy to clipboard operation
asyncplusplus copied to clipboard

Chain a subset of tasks

Open BotellaA opened this issue 1 year ago • 1 comments

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

BotellaA avatar May 12 '23 09:05 BotellaA

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

kikaxa avatar Jun 21 '23 16:06 kikaxa