Making progress towoards responses

This commit is contained in:
2026-02-19 05:05:44 +01:00
parent e09623e8b9
commit 9af16feda6
4 changed files with 43 additions and 36 deletions
+5 -1
View File
@@ -20,7 +20,11 @@ async fn main() -> session_rs::Result<()> {
println!("{:?}", session.request::<Data>(()).await?);
session
.on::<Data, _>(async |i, d| println!("Ok {i} {d:?}"))
.on::<Data, _>(async |i, d| {
println!("Ok {i} {d:?}");
Ok(())
})
.await;
tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await;