Update jive

This commit is contained in:
Aode (lion) 2022-03-05 16:57:44 -06:00
parent 701f9cf0a4
commit eccf6cb20b
4 changed files with 5 additions and 7 deletions

View file

@ -1,6 +1,6 @@
use std::time::Duration;
fn main() -> Result<(), Box<dyn std::error::Error>> {
fn main() {
jive::block_on(async move {
let notify = notify::Notify::new();
@ -34,7 +34,5 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
for handle in handles {
let _ = handle.await;
}
})?;
Ok(())
})
}

View file

@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
while let Some(val) = rx.recv().await {
println!("Got {}", val);
}
})?;
});
let (tx, rx) = mpsc();

View file

@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if let Ok(val) = rx.recv().await {
println!("Got {}", val);
}
})?;
});
let (tx, rx) = oneshot();

View file

@ -52,7 +52,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
for handle in handles {
let _ = handle.await;
}
})?;
});
let (tx, rx) = watch("meowdy".into());