Searched refs:wrap_async (Results 1 – 10 of 10) sorted by relevance
| /wasmtime-44.0.1/tests/all/ |
| H A D | async_functions.rs | 34 let func = Func::wrap_async(&mut store, move |_caller, _: ()| Box::new(async { Ok(()) })); in smoke() 87 let func = Func::wrap_async(&mut store, move |_caller, _: ()| { in smoke_with_suspension() 514 let func = Func::wrap_async(&mut store, |_, _: ()| { in resume_separate_thread() 547 let func = Func::wrap_async(&mut store, |_, _: ()| { in resume_separate_thread2() 589 let func = Func::wrap_async(&mut store, |_, _: ()| { in resume_separate_thread3() 648 let func = Func::wrap_async(&mut store, |_, _: ()| { in resume_separate_thread_tls() 678 let f2 = Func::wrap_async(&mut store, move |mut caller, _: ()| { in recursive_async()
|
| H A D | missing_async.rs | 8 Func::wrap_async(&mut store, |_, ()| Box::new(async {})); in async_store() 51 Func::wrap_async(&mut store, |_, ()| Box::new(async {})); in require_async_after_func_wrap()
|
| H A D | call_hook.rs | 122 let f = Func::wrap_async( in call_wrapped_async_func() 244 let f = Func::wrap_async( in call_linked_func_async()
|
| H A D | debug.rs | 1065 let hostfunc = Func::wrap_async(&mut store, move |mut caller, _args: ()| { in invalidated_frame_handles() 1115 let hostfunc = Func::wrap_async(&mut store, move |mut caller, _args: ()| { in invalidated_frame_handles_in_dropped_future()
|
| /wasmtime-44.0.1/crates/wasmtime/tests/ |
| H A D | host_segfault.rs | 160 let f = Func::wrap_async(&mut store, |_, _: ()| { in main() 199 let f = Func::wrap_async(&mut store, |_, _: ()| { in main()
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | missing_async.rs | 9 wasmtime::Func::wrap_async(&mut store, |_, ()| Box::new(async {})); in async_store()
|
| H A D | async.rs | 221 let poll_once = wasmtime::Func::wrap_async(&mut store, |mut cx, _: ()| { in poll_through_wasm_activation()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | linker.rs | 759 let dtor = Arc::new(crate::func::HostFunc::wrap_async( in resource_async() 786 let dtor = Arc::new(crate::func::HostFunc::wrap_async( in resource_concurrent()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | func.rs | 837 pub fn wrap_async<T, F, P, R>(mut store: impl AsContextMut<Data = T>, func: F) -> Func in wrap_async() method 848 let host = HostFunc::wrap_async(store.engine(), func).panic_on_oom(); in wrap_async() 2578 pub fn wrap_async<T, F, P, R>(engine: &Engine, func: F) -> Result<Self, OutOfMemory> in wrap_async() method
|
| H A D | linker.rs | 567 self.func_insert(module, name, HostFunc::wrap_async(&self.engine, func)?) in func_wrap_async()
|