|
dxFeed Graal CXX API v4.3.1
|
Mixin for wrapping Promise method calls for a void. More...
#include <Promise.hpp>
Public Member Functions | |
| void | getResult () const |
| Returns result of computation. | |
| void | await () const |
| Wait for the computation to complete and return its result or throw an exception in case of exceptional completion. | |
| void | await (std::int32_t timeoutInMilliseconds) const & |
| Wait for the computation to complete or timeout and return its result or throw an exception in case of exceptional completion or timeout. | |
| void | await (const std::chrono::milliseconds &timeoutInMilliseconds) const & |
| Wait for the computation to complete or timeout and return its result or throw an exception in case of exceptional completion or timeout. | |
Mixin for wrapping Promise method calls for a void.
| P | The promise type. |
|
inline |
Wait for the computation to complete and return its result or throw an exception in case of exceptional completion.
| CancellationException | if computation was canceled. |
| PromiseException | if computation has completed exceptionally. |
References getResult().
|
inline |
Wait for the computation to complete or timeout and return its result or throw an exception in case of exceptional completion or timeout.
| timeoutInMilliseconds | The timeout. |
| CancellationException | if computation was cancelled or timed out. |
| PromiseException | if computation has completed exceptionally. |
References getResult().
|
inline |
Wait for the computation to complete or timeout and return its result or throw an exception in case of exceptional completion or timeout.
| timeoutInMilliseconds | The timeout. |
| CancellationException | if computation was canceled or timed out. |
| PromiseException | if computation has completed exceptionally. |
References getResult().
|
inline |
Returns result of computation.