MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / config

Method config

tests/all/component_model.rs:36–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34
35impl ApiStyle {
36 fn config(self) -> Config {
37 let mut config = config();
38 match self {
39 ApiStyle::AsyncNotConcurrent => {
40 config.concurrency_support(false);
41 }
42 ApiStyle::Sync | ApiStyle::Async | ApiStyle::Concurrent => {
43 config.wasm_component_model_threading(true);
44 }
45 }
46 config
47 }
48
49 async fn instantiate<T: Send>(
50 self,

Callers 8

compileMethod · 0.45
invoke_post_returnFunction · 0.45
thread_index_via_callFunction · 0.45

Calls 3

configFunction · 0.70
concurrency_supportMethod · 0.45

Tested by

no test coverage detected