Apache Ignite C++
|
Future class template. More...
#include <future.h>
Public Types | |
typedef T | ValueType |
Template value type. | |
Public Member Functions | |
Future (const Future< ValueType > &src) | |
Copy constructor. More... | |
Future & | operator= (const Future< ValueType > &other) |
Assignment operator. More... | |
void | Wait () const |
Wait for value to be set. More... | |
bool | WaitFor (int32_t msTimeout) const |
Wait for value to be set for specified time. More... | |
const ValueType & | GetValue () const |
Get the set value. More... | |
void | Cancel () |
Cancel related operation. | |
bool | IsReady () |
Check if the future ready. | |
Friends | |
class | common::Promise< T > |
Future class template.
Used to get result of the asynchroniously started computation.
T | Future value type. |
|
inline |
Copy constructor.
src | Instance to copy. |
|
inline |
Get the set value.
Active thread will be blocked until value or error will be set.
IgniteError | if error has been set. |
|
inline |
Assignment operator.
other | Other instance. |
|
inline |
Wait for value to be set.
Active thread will be blocked until value or error will be set.
|
inline |
Wait for value to be set for specified time.
Active thread will be blocked until value or error will be set or timeout will end.
msTimeout | Timeout in milliseconds. |