C++23 Future Composition
std::future Extensions (C++23) std::future doesn't support composition std::future Improvement then: execute the next future if the previous one is done future<int> f1 = async([]{ return 123; }); future<string> f2 = f1.then([](future<int> f){ return to_string(f.get()); // non-blocking }); auto myResult = f2.get(); // blocking
A photographed presentation slide explains a proposed C++23 extension for std::future, including chaining one future after another. The joke is that modern C++ concurrency features are still incomplete, so programmers have to build their own abstractions while waiting for standard-library improvements. EN: A photographed presentation slide explains a proposed C++23 extension for std::future, including chaining one future after another. The joke is that modern C++ concurrency features are still incomplete, so programmers have to build their own abstractions while waiting for standard-library improvements.
- @ithueti / 856 2019-04-20
- Type
- image
- Size
- 800×600 · 35.4 KiB
- Mood
- саркастичный, познавательный
- Language
- en
- Added