![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
The future is fulfilled once the evaluation of the module completes. More...
#include <ModuleLoader.h>
Classes | |
| struct | Evaluating |
| struct | Fulfilled |
| struct | Invalid |
| struct | Rejected |
| struct | WaitingForFileChange |
Public Types | |
| using | Status = std::variant< Evaluating, Fulfilled, Rejected, WaitingForFileChange, Invalid > |
Public Member Functions | |
| Future (const Script::Request &rq, ModuleLoader &reqistry, Result &result, VfsPath modulePath) | |
| Future ()=default | |
| Future (const Future &)=delete | |
| Future & | operator= (const Future &)=delete |
| Future (Future &&other) noexcept | |
| Future & | operator= (Future &&other) noexcept |
| ~Future () | |
| bool | IsDone () const noexcept |
| JSObject * | Get () |
| Throws if the evaluation of the module failed. More... | |
Private Member Functions | |
| bool | IsWaiting () const noexcept |
| void | SetWaiting () noexcept |
| void | SetReservedSlot (JS::Value privateValue) noexcept |
Private Attributes | |
| friend | Result |
| Status | m_Status {Invalid{}} |
The future is fulfilled once the evaluation of the module completes.
Note: The evaluation might not be started yet.
| using Script::ModuleLoader::Future::Status = std::variant<Evaluating, Fulfilled, Rejected, WaitingForFileChange, Invalid> |
|
explicit |
|
default |
|
delete |
|
noexcept |
| Script::ModuleLoader::Future::~Future | ( | ) |
| JSObject * Script::ModuleLoader::Future::Get | ( | ) |
Throws if the evaluation of the module failed.
default is a property with name "default".
|
noexcept |
|
privatenoexcept |
|
noexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |