|
libscratchcpp
A library for C++ based Scratch project players
|
The Promise class represents the eventual completion of an asynchronous operation. More...
#include <scratchcpp/promise.h>
Public Member Functions | |
| Promise () | |
| Promise (const Promise &)=delete | |
| bool | isResolved () const |
| void | resolve () |
The Promise class represents the eventual completion of an asynchronous operation.
| Promise::Promise | ( | ) |
Constructs Promise.
|
delete |
| bool Promise::isResolved | ( | ) | const |
Returns true if the promise is resolved.
| void Promise::resolve | ( | ) |
Marks the promise as resolved.