async: Fire and Forget
Explore how fire and forget futures operate using std async in C++. Understand their execution in separate threads, how they affect concurrency and program blocking, and the differences from ordinary futures.
We'll cover the following...
We'll cover the following...
Fire and forget futures are special futures; they execute in place because their future is not bound to a variable. For a “fire and forget” future, it is necessary that the promise runs in a separate thread so it can immediately start its work. This is done by the std::launch::async ...