Skip to content

Class jac::EventLoopFeature

template <class Next>

ClassList > jac > EventLoopFeature

More...

  • #include <eventLoopFeature.h>

Inherits the following classes: Next

Public Functions

Type Name
void evalModuleWithEventLoop (std::string code, std::string filename)
void exit (int code)
int getExitCode ()
void initialize ()
void kill ()
void onEventLoop ()
void runEventLoop ()
virtual void runOnEventLoop () = 0

Protected Attributes

Type Name
std::optional< Exception > _error = std::nullopt

Protected Functions

Type Name
void evalWithEventLoopCommon (Value & promise)

Detailed Description

Note:

The EventLoopFeature must be companied by EventLoopTerminal at the top of the Machine stack.

Public Functions Documentation

function evalModuleWithEventLoop

inline void jac::EventLoopFeature::evalModuleWithEventLoop (
    std::string code,
    std::string filename
) 

function exit

inline void jac::EventLoopFeature::exit (
    int code
) 

function getExitCode

inline int jac::EventLoopFeature::getExitCode () 

function initialize

inline void jac::EventLoopFeature::initialize () 

function kill

inline void jac::EventLoopFeature::kill () 

function onEventLoop

inline void jac::EventLoopFeature::onEventLoop () 

function runEventLoop

inline void jac::EventLoopFeature::runEventLoop () 

function runOnEventLoop

virtual void jac::EventLoopFeature::runOnEventLoop () = 0

Protected Attributes Documentation

variable _error

std::optional<Exception> jac::EventLoopFeature< Next >::_error;

Protected Functions Documentation

function evalWithEventLoopCommon

inline void jac::EventLoopFeature::evalWithEventLoopCommon (
    Value & promise
) 


The documentation for this class was generated from the following file src/jac/features/eventLoopFeature.h