(self)
| 34 | |
| 35 | impl 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, |
no test coverage detected