AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Shared completion marker for multithreaded callback-based future handling. More...
Shared completion marker for multithreaded callback-based future handling.
ASharedRaiiHelper is intended to track the completion of multiple futures, exploiting the destruction of AFuture::onSuccess or AFuture::onError callbacks when they called. This approach allows to easily integrate ASharedRaiiHelper to the existing code.
Note that the callback will be called even if onSuccess is not.
Static Public Member Functions | |
static _< ASharedRaiiHelper > | make (std::function< void()> callback) |
#include <AUI/Util/ASharedRaiiHelper.h>