```rust use flowync::Flower;
fn main() {
let flower = Flower::
let mut exit = false;
loop {
// This fn will deactivate itself if the result contains a value.
// Note: this fn is non-blocking (won't block the current thread).
flower.try_recv(
|option| {
if let Some(value) = option {
println!("{}", value);
}
},
|result| {
match result {
Ok(value) => {
println!("{}", value);
}
Err(e) => {
println!("{}", e);
}
}
exit = true;
},
);
if exit {
break;
}
}
} ```
can be found here here