Questions about the hyper1 client example
⚓ Rust 📅 2025-10-22 👤 surdeus 👁️ 3// Spawn a task to poll the connection, driving the HTTP state
tokio::task::spawn(async move {
if let Err(err) = conn.await {
println!("Connection failed: {:?}", err);
}
});
What errors might this spawned thread generate? Should they be sent back to the main thread? If so, how should they be sent back?
3 posts - 2 participants
🏷️ Rust_feed