r/cpp • u/pavel_v • Oct 14 '26
C++ futures part 2: The mental model for std::promise, std::packaged_task
https://devblogs.microsoft.com/oldnewthing/20261013-00/?p=112769/
32
Upvotes
r/cpp • u/pavel_v • Oct 14 '26
7
u/xaervagon Oct 14 '26
I always thought packaged_task seems cool, but never actually found a practical use for it versus other options
3
u/realestLink Oct 14 '26
Interesting. I've never heard of
std::packaged_taskbefore