Promise and Future : Return an Exception
This lesson teaches how to return an exception while using std::promise and future in C++ for multithreading.
The function executeDivision
displays the result of the calculation or the exception.
Get hands-on with 1400+ tech skills courses.