I know std::jthread
got introduced in C++20
. And also std::async
which got introduced in C++11
which as per my knowledge internally makes use of C++11
std::thread
. So I want to know, has std::async
been standardized to use std::jthread
internally from C++20
onwards?
has
std::async
been standardized to usestd::jthread
internally from c++20 onwards?
No. It is very rare that the c++ standard specified implementation details.
Instead it specifies requirements, preconditions, and postconditions.
There is nothing blocking std::async
from using thread
or jthread
internally, so long as doing so maintains the requirements of std::async
.