(
mut store: impl AsContextMut,
module: &Module,
imports: &[Extern],
)
| 198 | /// details on Wasmtime's out-of-memory handling. |
| 199 | #[cfg(feature = "async")] |
| 200 | pub async fn new_async( |
| 201 | mut store: impl AsContextMut, |
| 202 | module: &Module, |
| 203 | imports: &[Extern], |
| 204 | ) -> Result<Instance> { |
| 205 | let mut store = store.as_context_mut(); |
| 206 | let imports = Instance::typecheck_externs(store.0, module, imports)?; |
| 207 | // See `new` for notes on this unsafety |
| 208 | unsafe { Instance::new_started(&mut store, module, imports.as_ref(), Asyncness::Yes).await } |
| 209 | } |
| 210 | |
| 211 | fn typecheck_externs( |
| 212 | store: &mut StoreOpaque, |
nothing calls this directly
no test coverage detected