|
| Future (TaskCallback task=nullptr) |
|
const _< CancellationWrapper< Inner > > & | inner () const noexcept |
|
bool | isWaitNeeded () const noexcept |
|
bool | hasResult () const noexcept |
|
bool | hasValue () const noexcept |
|
void | reportException () const noexcept |
|
template<typename Callback> |
void | onSuccess (Callback &&callback) const |
|
template<aui::invocable< const AException & > Callback> |
void | onError (Callback &&callback) const |
|
template<aui::invocable Callback> |
void | onFinally (Callback &&callback) const |
| Adds the callback to both onSuccess and onResult.
|
|
void | cancel () const noexcept |
| Cancels the AFuture's task.
|
|
void | reportInterrupted () const |
|
void | wait (AFutureWait flags=AFutureWait::DEFAULT) const |
| Sleeps if the supplyValue is not currently available.
|
|
FutureReturnType< Value >::type | get (AFutureWait flags=AFutureWait::DEFAULT) const |
| Returns the supplyValue from the another thread. Sleeps if the supplyValue is not currently available.
|
|
FutureReturnType< Value >::type | operator* () const |
| Returns the task result from the another thread. Sleeps if the task result is not currently available.
|
|
FutureReturnType< Value >::type | operator* () |
| Returns the supplyValue from the another thread. Sleeps if the supplyValue is not currently available.
|
|
Value * | operator-> () const |
| Returns the supplyValue from the another thread. Sleeps if the supplyValue is not currently available.
|
|