(x: FutureReader<String>, y: String)
| 8 | |
| 9 | impl crate::exports::my::test::i::Guest for Component { |
| 10 | async fn ping(x: FutureReader<String>, y: String) -> FutureReader<String> { |
| 11 | let msg = x.await + y.as_str(); |
| 12 | let (tx, rx) = wit_future::new(|| unreachable!()); |
| 13 | wit_bindgen::spawn_local(async move { |
| 14 | tx.write(msg).await.unwrap(); |
| 15 | }); |
| 16 | rx |
| 17 | } |
| 18 | |
| 19 | async fn pong(x: FutureReader<String>) -> String { |
| 20 | x.await |
nothing calls this directly
no test coverage detected