AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AAsyncHolder Class Reference

Holds a set of futures keeping them valid. More...

Detailed Description

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 >
AAsyncHolderoperator<< (AFuture< T > future)
 
std::size_t size () const
 
void waitForAll ()
 

#include <AUI/Thread/AAsyncHolder.h>


The documentation for this class was generated from the following file: