MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / SetWasmComponentModel

Method SetWasmComponentModel

config_feat_component_model.go:9–12  ·  view source on GitHub ↗

SetWasmComponentModel configures whether the wasm component model proposal is enabled.

(enabled bool)

Source from the content-addressed store, hash-verified

7// SetWasmComponentModel configures whether the wasm component model proposal is
8// enabled.
9func (cfg *Config) SetWasmComponentModel(enabled bool) {
10 C.wasmtime_config_wasm_component_model_set(cfg.ptr(), C.bool(enabled))
11 runtime.KeepAlive(cfg)
12}
13
14// SetConcurrencySupport configures whether support for concurrent execution of
15// WebAssembly is enabled for stores using this configuration.

Callers 3

newComponentEngineFunction · 0.95
mainFunction · 0.95
TestConfigFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 2

newComponentEngineFunction · 0.76
TestConfigFunction · 0.64