fn main() {
let semaphore = bau::Semaphore::new(10);
let s = semaphore.clone();
std::thread::spawn(move || {
semaphore .wait(|| {
println!("I'm not a chihuahua!"); })
.unwrap(); });
std::thread::spawn(move || {
{
let _guard = s.wait_guard(); println!("I'm not fuwawa!"); } });
println!("BAU BAU!");
}