A lightweight version of std::promise.
More...
#include <future.h>
|
|
class | PromiseFactory< T > |
| |
template<typename T>
class wpi::promise< T >
A lightweight version of std::promise.
Use PromiseFactory::CreatePromise() to create.
- Template Parameters
-
◆ get_future()
Gets a future for this promise.
- Returns
- The future
◆ set_value() [1/2]
Sets the promised value.
Only effective once (subsequent calls will be ignored).
- Parameters
-
| value | The value to provide to the waiting future |
◆ set_value() [2/2]
Sets the promised value.
Only effective once (subsequent calls will be ignored).
- Parameters
-
| value | The value to provide to the waiting future |
The documentation for this class was generated from the following file:
- /__w/1/s/wpiutil/src/main/native/include/wpi/future.h