std::experi...ncurrencyTS)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

Okay bestie, welcome to the std::experi...ncurrencyTS)(3) page from the C++ Standard Libary manual β€” yes, manual name folded in near the top, and yes we’re keeping the typo because character-for-character honesty is the vibe. πŸ’…

πŸ’– NAME πŸ’–

std::experimental::promise(concurrencyTS) β€” that’s the name. And because the original repeats it, here it is again: std::experimental::promise(concurrencyTS). Periodt. ✨

πŸ“œ Synopsis πŸ“œ

It’s defined in header <experimental/future> β€” no cap, that’s the literal path. πŸŽ€

template< class R > class promise;       (1) (concurrency TS)
template< class R > class promise<R&>;   (2) (concurrency TS)
template<>          class promise<void>; (3) (concurrency TS)

Okay so std::experimental::concurrency_v1::promise is a modified version of std::promise β€” it’s provided by the concurrency TS, and it works with std::experimental::future. πŸ¦‹

The only change from std::promise is that the get_future() member function returns a std::experimental::future. That’s the whole tea. πŸ«–πŸ”₯


Signed off with bestie energy from source/version/date: http://cppreference.com, 2024.06.10, on the std::experi...ncurrencyTS)(3) page. πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from