examples: adjust buffering in examples (#3328)

This commit is contained in:
AJ Frantz
2020-12-27 10:43:02 +01:00
committed by GitHub
parent 4d7b73f5b3
commit c4929264bc
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let b = pong(&mut b);
// Run both futures simultaneously of `a` and `b` sending messages back and forth.
match futures::future::try_join(a, b).await {
match tokio::try_join!(a, b) {
Err(e) => println!("an error occurred; error = {:?}", e),
_ => println!("done!"),
}