更新libclamav库1.0.0版本
This commit is contained in:
18
clamav/libclamav_rust/.cargo/vendor/flume/examples/simple.rs
vendored
Normal file
18
clamav/libclamav_rust/.cargo/vendor/flume/examples/simple.rs
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
use std::thread;
|
||||
|
||||
fn main() {
|
||||
let (tx, rx) = flume::unbounded();
|
||||
|
||||
let t = thread::spawn(move || {
|
||||
for msg in rx.iter() {
|
||||
println!("Received: {}", msg);
|
||||
}
|
||||
});
|
||||
|
||||
tx.send("Hello, world!").unwrap();
|
||||
tx.send("How are you today?").unwrap();
|
||||
|
||||
drop(tx);
|
||||
|
||||
t.join().unwrap();
|
||||
}
|
Reference in New Issue
Block a user