Update jive
This commit is contained in:
parent
701f9cf0a4
commit
eccf6cb20b
|
@ -1,6 +1,6 @@
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() {
|
||||||
jive::block_on(async move {
|
jive::block_on(async move {
|
||||||
let notify = notify::Notify::new();
|
let notify = notify::Notify::new();
|
||||||
|
|
||||||
|
@ -34,7 +34,5 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
for handle in handles {
|
for handle in handles {
|
||||||
let _ = handle.await;
|
let _ = handle.await;
|
||||||
}
|
}
|
||||||
})?;
|
})
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
while let Some(val) = rx.recv().await {
|
while let Some(val) = rx.recv().await {
|
||||||
println!("Got {}", val);
|
println!("Got {}", val);
|
||||||
}
|
}
|
||||||
})?;
|
});
|
||||||
|
|
||||||
let (tx, rx) = mpsc();
|
let (tx, rx) = mpsc();
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
if let Ok(val) = rx.recv().await {
|
if let Ok(val) = rx.recv().await {
|
||||||
println!("Got {}", val);
|
println!("Got {}", val);
|
||||||
}
|
}
|
||||||
})?;
|
});
|
||||||
|
|
||||||
let (tx, rx) = oneshot();
|
let (tx, rx) = oneshot();
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
for handle in handles {
|
for handle in handles {
|
||||||
let _ = handle.await;
|
let _ = handle.await;
|
||||||
}
|
}
|
||||||
})?;
|
});
|
||||||
|
|
||||||
let (tx, rx) = watch("meowdy".into());
|
let (tx, rx) = watch("meowdy".into());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue