1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//@ wasmtime-flags = '-Wcomponent-model-async' include!(env!("BINDINGS")); use crate::a::b::the_test::f; struct Component; export!(Component); impl Guest for Component { async fn run() { let (tx, rx) = wit_future::new(|| ()); let rx = f(rx); drop(rx); drop(tx); } }