ProcExitFunctionHandle

Handler for the WasiPreview1HostFunction.PROC_EXIT function.

Throws ProcExitException that should be handled by WASM runtime adapter.

An exit code of 0 indicates successful termination of the program. The meanings of other values is dependent on the environment.

Constructors

Link copied to clipboard
constructor(host: EmbedderHost)

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun execute(exitCode: Exitcode): Nothing

Throws ProcExitException that should be handled by WASM runtime adapter