Skip to content

Commit

Permalink
examples: avoid tokio example exiting
Browse files Browse the repository at this point in the history
let it run indefinitely

Fixes #384

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information
Keruspe committed Aug 8, 2023
1 parent 8b5f3c1 commit 4345891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ async fn main() {
.unwrap()
.await
.unwrap();

std::future::pending::<()>().await;
}

0 comments on commit 4345891

Please sign in to comment.