Sindbad~EG File Manager

Current Path : /usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/flume/examples/
Upload File :
Current File : //usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/flume/examples/simple.rs

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();
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists