...

/

async: Fire and Forget

async: Fire and Forget

This lesson gives an overview of fire and forget, which are used with std::async in C++ for concurrency.

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 ...