CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::BSScript::LatentPromise< R > Struct Template Reference

#include <NativeLatentFunction.h>

Inheritance diagram for RE::BSScript::LatentPromise< R >:
RE::BSScript::LatentPromiseBase

Public Member Functions

template<class... Args>
 LatentPromise (IVirtualMachine *a_vm, VMStackID a_stackID, Args...)
 
Variable GetResult () override
 
LatentResult< R > get_return_object ()
 
void return_value (R &&a_value)
 
- Public Member Functions inherited from RE::BSScript::LatentPromiseBase
 LatentPromiseBase (IVirtualMachine *a_vm, VMStackID a_stackID)
 
virtual ~LatentPromiseBase ()
 
virtual Variable GetResult ()=0
 
void ReturnFromLatent ()
 
std::suspend_never initial_suspend ()
 
std::suspend_always final_suspend () noexcept
 
void unhandled_exception ()
 

Public Attributes

value
 
- Public Attributes inherited from RE::BSScript::LatentPromiseBase
IVirtualMachinevm
 
VMStackID stackID
 
bool returned { false }
 
std::exception_ptr exception
 

Constructor & Destructor Documentation

◆ LatentPromise()

template<class R >
template<class... Args>
RE::BSScript::LatentPromise< R >::LatentPromise ( IVirtualMachine a_vm,
VMStackID  a_stackID,
Args...   
)
inline

Member Function Documentation

◆ get_return_object()

template<class R >
LatentResult< R > RE::BSScript::LatentPromise< R >::get_return_object ( )
inline

◆ GetResult()

template<class R >
Variable RE::BSScript::LatentPromise< R >::GetResult ( )
inlineoverridevirtual

◆ return_value()

template<class R >
void RE::BSScript::LatentPromise< R >::return_value ( R &&  a_value)
inline

Member Data Documentation

◆ value

template<class R >
R RE::BSScript::LatentPromise< R >::value

The documentation for this struct was generated from the following file: