Alternera.PluginWasmFramework.Application (alternera_plugin_wasm_framework v0.9.0)

Copy Markdown View Source

Starts Slots, the node's limit on guests running at once, UploadedModules, the node's cache of uploaded modules, and Runtime.Port.Pool, the processes of the port runtime. The package is a dependency of every language plugin, so all three are up before a language step runs.

The runtime is settled first (Runtime.resolve/0: the port runtime unless the configuration or ALTERNERA_WASM_RUNTIME says wasmex, or its host program is missing), since Slots sizes itself by it. The pool starts no process until it is used, unless Runtime.Port is the runtime: then it is warmed at once (Pool.warm/0), so the first requests find processes ready.