examples: continue handling output events

pull/574/head
Dmitry Sharshakov 3 years ago committed by Blaž Hrastnik
parent 279db98d3c
commit 6c0f7eafc3

@ -11,6 +11,7 @@ struct LaunchArguments {
}
async fn output(mut output_event: Receiver<Event>) {
loop {
let body: OutputEventBody =
from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap();
println!(
@ -18,6 +19,7 @@ async fn output(mut output_event: Receiver<Event>) {
body.category.unwrap_or("unknown".to_owned()),
body.output
);
}
}
#[tokio::main]

@ -11,6 +11,7 @@ struct LaunchArguments {
}
async fn output(mut output_event: Receiver<Event>) {
loop {
let body: OutputEventBody =
from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap();
println!(
@ -18,6 +19,7 @@ async fn output(mut output_event: Receiver<Event>) {
body.category.unwrap_or("unknown".to_owned()),
body.output
);
}
}
#[tokio::main]

Loading…
Cancel
Save