examples: ensure target stopped by waiting for enter from user

This commit is contained in:
Dmitry Sharshakov 2021-09-04 19:36:36 +03:00
parent 430c80ff2a
commit df0ea6674a
2 changed files with 10 additions and 0 deletions

View file

@ -82,6 +82,11 @@ pub async fn main() -> Result<()> {
println!("configurationDone: {:?}", client.configuration_done().await); println!("configurationDone: {:?}", client.configuration_done().await);
let mut _in = String::new();
std::io::stdin()
.read_line(&mut _in)
.expect("Failed to read line");
let threads = client.threads().await?; let threads = client.threads().await?;
println!("threads: {:#?}", threads); println!("threads: {:#?}", threads);
let bt = client let bt = client

View file

@ -84,6 +84,11 @@ pub async fn main() -> Result<()> {
println!("configurationDone: {:?}", client.configuration_done().await); println!("configurationDone: {:?}", client.configuration_done().await);
let mut _in = String::new();
std::io::stdin()
.read_line(&mut _in)
.expect("Failed to read line");
let threads = client.threads().await?; let threads = client.threads().await?;
println!("threads: {:#?}", threads); println!("threads: {:#?}", threads);
let bt = client let bt = client