|
ORIGINAL
|
Specialization of asyncWrapper for void results. More...
#include <async.h>

Public Member Functions | |
| void | setValue () |
| Marks the computation as completed successfully. | |
| void | setException (const std::exception_ptr &e) |
| Sets an exception and marks as completed. | |
| bool | ready () const |
| Checks if the computation is completed. | |
| void | wait () const |
| Waits until the computation completes. | |
| bool | waitFor (const time::duration &timeout) const |
| Waits for the result with a timeout. | |
| void | get () |
| Waits for completion and checks for exceptions. | |
| void | peek () const |
| Checks for completion and exceptions without consuming the result. | |
| void | rethrowIfException () const |
| Throws stored exception if present. | |
| std::exception_ptr | exception () const noexcept |
| Gets the stored exception. | |
Specialization of asyncWrapper for void results.
|
inlinenoexcept |
Gets the stored exception.
Waits for completion and checks for exceptions.
| std::exception | if the computation threw an exception |
Checks for completion and exceptions without consuming the result.
| std::exception | if the computation threw an exception |
Checks if the computation is completed.
Throws stored exception if present.
| std::exception | if the computation threw an exception |
Sets an exception and marks as completed.
| e | Exception pointer to store |
|
inline |
Waits for the result with a timeout.
| timeout | Maximum time to wait |