DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
A class that holds possible future data. More...
#include <DCS_ModuleUtils.h>
Public Member Functions | |
AsyncItem (std::promise< T > &p) | |
void | wait () const |
Wait for item to be available. | |
T | get () const |
Get the item stored in the future. More... | |
A class that holds possible future data.
To be used as a return type when expected data T is returned async.
T | the type to manipulate. |
|
inline |
Get the item stored in the future.
If item is not available, it waits until it is.