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

Function async_limiter_store

tests/all/missing_async.rs:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35fn async_limiter_store() -> Store<MyAsyncLimiter> {
36 let engine = Engine::default();
37 let mut store = Store::new(&engine, MyAsyncLimiter);
38 store.limiter_async(|x| x);
39 return store;
40}
41
42fn assert_requires_async<T>(store: &mut Store<T>) {
43 let module = Module::new(store.engine(), "(module)").unwrap();

Calls 2

limiter_asyncMethod · 0.80
newFunction · 0.50

Tested by 1