Specialization for promises that resolve to no value.
More...
#include <CesiumAsync/Promise.h>
|
void | resolve () const |
| Will be called when the task completed successfully.
|
|
template<typename TException > |
void | reject (TException error) const |
| Will be called when the task failed.
|
|
void | reject (const std::exception_ptr &error) const |
| Will be called when the task failed.
|
|
Future< void > | getFuture () const |
| Gets the Future that resolves or rejects when this Promise is resolved or rejected.
|
|
Specialization for promises that resolve to no value.
Definition at line 80 of file Promise.h.
◆ getFuture()
Gets the Future that resolves or rejects when this Promise is resolved or rejected.
This method may only be called once.
- Returns
- The future.
Definition at line 108 of file Promise.h.
◆ reject() [1/2]
Will be called when the task failed.
- Parameters
-
error | The error, captured with std::current_exception , that caused the task to fail. |
Definition at line 102 of file Promise.h.
◆ reject() [2/2]
template<typename TException >
Will be called when the task failed.
- Parameters
-
error | The error that caused the task to fail. |
Definition at line 92 of file Promise.h.
◆ resolve()
Will be called when the task completed successfully.
Definition at line 85 of file Promise.h.
◆ AsyncSystem
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumAsync/include/CesiumAsync/Promise.h