dxFeed Graal CXX API v4.0.0
|
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 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 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 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 computation to complete and return its result or throw an exception in case of exceptional completion.
CancellationException | if computation was cancelled. |
PromiseException | if computation has completed exceptionally. |
|
inline |
Wait for 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. |
|
inline |
Wait for 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. |
|
inline |
Returns result of computation.