AComplexFutureOperation#
Helper class to construct AFuture values.
Header: | #include <AUI/Thread/AComplexFutureOperation.h> |
CMake: | aui_link(my_target PUBLIC aui::core) |
Detailed Description#
AComplexFutureOperation is used to handle results and errors of multiple sequential futures.
AComplexFutureOperation is intended to construct a future with makeFuture(). makeFuture() must be called.
If AComplexFutureOperation get destroyed, it reports error to it's future if it does not have a result. AComplexFutureOperation should be carried with AFuture::onSuccess callbacks of other futures or any other callback-based structure, hence the destruction without result is treated as an error.
Public Types#
NoValueException#
class AComplexFutureOperation::NoValueException
Empty structure.
Public Methods#
makeFuture#
AFuture<T> AComplexFutureOperation::makeFuture()
Creates AFuture
AFuture
supplyException#
Pushes the result of operation to it's AFuture
supplyValue#
Pushes the result of operation to it's AFuture
- Arguments
value
operation