stdasync
std::async is a function template in the C++ standard library, declared in the <future> header, that runs a callable asynchronously and returns a std::future representing the eventual result. It was introduced in the C++11 standard and is designed to provide a convenient way to perform work concurrently without managing threads directly.
The function accepts a callable and its arguments and returns a future of the result type. Two
The return type is a std::future<T>, where T is the result type of invoking the callable with
Usage notes and caveats include the overhead of creating asynchronous tasks and the fact that std::async is