libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::Promise Class Reference

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 ()
 

Detailed Description

The Promise class represents the eventual completion of an asynchronous operation.

Constructor & Destructor Documentation

◆ Promise() [1/2]

Promise::Promise ( )

Constructs Promise.

◆ Promise() [2/2]

libscratchcpp::Promise::Promise ( const Promise & )
delete

Member Function Documentation

◆ isResolved()

bool Promise::isResolved ( ) const

Returns true if the promise is resolved.

◆ resolve()

void Promise::resolve ( )

Marks the promise as resolved.


The documentation for this class was generated from the following files: