WPILibC++
2019.1.1-beta-4-29-g6105873
|
Explicit specialization for promise<void>. More...
#include <future.h>
Public Member Functions | |
promise () | |
Constructs an empty promise. | |
promise (promise &&oth) noexcept | |
promise (const promise &)=delete | |
~promise () | |
Sets the promised value if not already set. | |
promise & | operator= (promise &&oth) noexcept |
promise & | operator= (const promise &)=delete |
void | swap (promise &oth) noexcept |
Swaps this promise with another one. | |
future< void > | get_future () noexcept |
Gets a future for this promise. More... | |
void | set_value () |
Sets the promised value. More... | |
Friends | |
class | PromiseFactory< void > |
Explicit specialization for promise<void>.
|
inlinenoexcept |
Gets a future for this promise.
|
inline |
Sets the promised value.
Only effective once (subsequent calls will be ignored).