withWasiPreview3
Installs a Preview 3 host with an explicit lifecycle.
WasiPreview3HostOwnership.OWNED transfers responsibility immediately: this builder closes the host if configuration or build fails, and a successfully built plugin closes it from WasmPlugin.close. A WasiPreview3HostOwnership.BORROWED host is never closed by the builder or plugin.
Deprecated
Preview 3 host ownership must be explicit. Use withWasiPreview3(wasi, WasiPreview3HostOwnership.BORROWED).
Replace with
withWasiPreview3(wasi, WasiPreview3HostOwnership.BORROWED)Content copied to clipboard