1 use super::Ctx;
2 use wasmtime::component::Accessor;
3 
4 wasmtime::component::bindgen!({
5     path: "wit",
6     world: "yield-host",
7 });
8 
9 impl local::local::yield_::HostWithStore for Ctx {
yield_times<T>(_: &Accessor<T, Self>, times: u64)10     async fn yield_times<T>(_: &Accessor<T, Self>, times: u64) {
11         crate::util::yield_times(times.try_into().unwrap()).await;
12     }
13 }
14 
15 impl local::local::yield_::Host for Ctx {}
16