|
dxFeed Graal CXX API v4.3.1
|
Result of an void receiving that will be completed normally or exceptionally in the future. More...
#include <Promise.hpp>
Inheritance diagram for Promise< void >: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 a computation has completed normally, or exceptionally, or was canceled. | |
| bool | hasResult () const |
Returns true when computation has completed normally. | |
| bool | hasException () const |
Returns true when a computation has completed exceptionally or was canceled. | |
| 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 |
| This method cancels computation. | |
Public Member Functions inherited from VoidPromiseMixin< Promise< void > > | |
| 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. | |
Result of an void receiving that will be completed normally or exceptionally in the future.