wip: bottom up dropping
This commit is contained in:
1 parent
687cda1b6d
commit
f2334c17be
21 files changed
+682
-679
No files matched your search
@@ -0,0 +1,19 @@
|
||||
use futures_channel::mpsc::unbounded;
|
||||
|
||||
#[async_std::test]
|
||||
async fn channels() {
|
||||
let (sender, mut receiver) = unbounded::<u32>();
|
||||
|
||||
// drop(sender);
|
||||
|
||||
match receiver.try_next() {
|
||||
Ok(a) => {
|
||||
dbg!(a);
|
||||
}
|
||||
Err(no) => {
|
||||
dbg!(no);
|
||||
}
|
||||
}
|
||||
|
||||
sender.unbounded_send(1).unwrap();
|
||||
}
|
||||
Reference in new issue
Block a user