variadic_future
variadic_future copied to clipboard
Variadic, completion-based futures for C++17
We need more actual usage examples.
Ideally, we should be allowed to write: ``` Future = async(queue, [](){ int a; Future b = ...; return segmented(a, b); }) ```
I suspect that a few loads and stores could be performed using relaxed memory ordering. This should be investigaed.
My immediate intuition is that it should go something like this: ``` Stream_promise prom; auto fut = prom.get_future(); int total = 0 ; auto done = fut.for_each([&](int v) { total...
We need benchmarks for a few reasons: 1. Identify regressions 2. Compare agaisnt std::future Writing regressions benchmarks in synchronous mode is easy enough, but that's not going to be very...
If you would like the library to support shared futures, for full DAG work graphs or otherwise, this is the place to chime in.