Fixed code styling.
This commit is contained in:
1 parent
7b716c1115
commit
c8ae3d3ff9
11 files changed
+85
-96
No files matched your search
@@ -0,0 +1,14 @@
|
||||
use std::{io};
|
||||
|
||||
pub async fn worker_loop(r: async_channel::Receiver<i32>) -> io::Result<()> {
|
||||
loop {
|
||||
let x = r.recv().await;
|
||||
match x {
|
||||
Ok(v) => println!("Processed value: {:?}", v),
|
||||
Err(e) => {
|
||||
println!("Error: {:?}", e);
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user