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
-
Gets a future for this promise.
- Returns
- The future
Sets the promised value.
Only effective once (subsequent calls will be ignored).
- Parameters
-
value | The value to provide to the waiting future |
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:
- /var/lib/jenkins/workspace/WPILib/WPILib - Development/arm/wpiutil/src/main/native/include/wpi/future.h