dxFeed Graal CXX API v4.0.0
|
Result of an void receiving that will be completed normally or exceptionally in the future. More...
#include <Promise.hpp>
Friends | |
struct | CommonPromiseMixin< Promise > |
struct | VoidPromiseMixin< Promise > |
struct | Promises |
Additional Inherited Members | |
Public Member Functions inherited from CommonPromiseMixin< Promise< void > > | |
bool | isDone () const |
Returns true when computation has completed normally, or exceptionally, or was cancelled. | |
bool | hasResult () const |
Returns true when computation has completed normally. | |
bool | hasException () const |
Returns true when computation has completed exceptionally or was cancelled. | |
bool | isCancelled () const |
Returns true when computation was cancelled. | |
JavaException | getException () const |
Returns exceptional outcome of computation. | |
bool | awaitWithoutException (std::int32_t timeoutInMilliseconds) const |
Wait for computation to complete or timeout or throw an exception in case of exceptional completion. | |
bool | awaitWithoutException (const std::chrono::milliseconds &timeoutInMilliseconds) const |
Wait for computation to complete or timeout or throw an exception in case of exceptional completion. | |
void | cancel () const |
Cancels computation. | |
Public Member Functions inherited from VoidPromiseMixin< Promise< void > > | |
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. | |
Result of an void receiving that will be completed normally or exceptionally in the future.