Engine
An Engine is used to compile WASM code into native machine code ready for execution. The Engine class is a wrapper around the wasmtime::Engine struct.
Settings on the engine configure which optional features (e.g. fuel usage, epoch interruption) Modules loaded with this Engine support. In Wasmbox this is controlled with the EngineConfig.
Methods​
void Dispose()​
Dispose this Engine instance.
danger
Do not call Dispose() on Engine objects retrieved from Wasmbox (e.g. EngineConfig.GetEngine()).
void IncrementEpoch()​
Increment the Epoch on this Engine. See this guide for more information on epoch interruption.