memesearch
C++23 Future Composition

C++23 Future Composition

Download Find similar pictures
Text on the meme
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
What it means

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.

Objects
Tags
Source
Type
image
Size
800×600 · 35.4 KiB
Mood
саркастичный, познавательный
Language
en
Added