rust tokio::sync::mpsc::channel is_empty() returning false when len() returns 0
I have a tokio::sync::mpsc::channel
open and the receiver’s is_empty()
method is returning false
when len()
method is returning 0
.
This only happens after 32 loops. Weird.
Anyone have ideas on why this might be happening?
use notify crate with non blocking mode
I try to follow https://github.com/notify-rs/notify/blob/main/examples/async_monitor.rs, but there are some blocking thread like futures::executor::block_on
.