Skip to content

Class jac::ModuleLoaderFeature

template <class Next>

ClassList > jac > ModuleLoaderFeature

Inherits the following classes: Next

Public Functions

Type Name
Value evalFile (std::string path_)
Evaluate a file.
void evalFileWithEventLoop (std::string path_)
Evaluate a file and run the event loop until the program exits or throws an exception.
void initialize ()

Public Functions Documentation

function evalFile

Evaluate a file.

inline Value jac::ModuleLoaderFeature::evalFile (
    std::string path_
) 

Parameters:

  • path_ Path to the file

Returns:

A promise that will be resolved when the module ends, and rejected if the module throws an exception.


function evalFileWithEventLoop

Evaluate a file and run the event loop until the program exits or throws an exception.

inline void jac::ModuleLoaderFeature::evalFileWithEventLoop (
    std::string path_
) 

Parameters:

  • path_ Path to the file

function initialize

inline void jac::ModuleLoaderFeature::initialize () 


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