//! Stream the current Lichess TV featured game (no authentication needed).
//!//! Run with: `cargo run --example tv_feed`
usefutures_util::StreamExt;uselitchee::LichessClient;#[tokio::main]
async fnmain()->litchee::Result<()>{let client =LichessClient::new();letmut feed = client.tv().feed().await?;// Print the first few events, then stop.
letmut remaining =5;whileletSome(event)= feed.next().await {println!("{:?}", event?);
remaining -=1;if remaining ==0{break;}}Ok(())}