mod bindings {
wit_bindgen::generate!({
path: "../misc/component-async-tests/wit",
world: "yield-callee",
async: ["-local:local/run#[async]run"],
});
use super::Component;
export!(Component);
}
use bindings::{exports::local::local::run::Guest, local::local::continue_};
struct Component;
impl Guest for Component {
fn run() {
while continue_::get_continue() && wit_bindgen::yield_blocking() {}
}
}
fn main() {}