Update jive
This commit is contained in:
parent
701f9cf0a4
commit
eccf6cb20b
|
@ -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(())
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue