AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Holds a set of futures keeping them valid. More...
Holds a set of futures keeping them valid.
Unlike AFutureSet, AAsyncHolder is intended to hold void futures (AFuture<void>), however, non-void types can be also supported (but with extra overhead). When AFuture's task is complete, the AFuture is removed from AAsyncHolder.
Guarantees that held futures will never be executed or be during execution after AAsyncHolder is destroyed.
Cancels all futures in destructor.
Public Member Functions | |
template<typename T > | |
AAsyncHolder & | operator<< (AFuture< T > future) |
std::size_t | size () const |
void | waitForAll () |
#include <AUI/Thread/AAsyncHolder.h>