FutureExt::now_or_never
always returning None when using futures_timer::Delay
#2745
Labels
FutureExt::now_or_never
always returning None when using futures_timer::Delay
#2745
I am trying to write something to wait some time and check the async function is finished so I was using
FutureExt::now_or_never
but it is giving me unexpected output. The following is the example program I was using to test.Cargo.toml
main.rs
The output I am getting is None even though the delay in
wait_for_signal
should have already been done.But if I comment out
Delay::new(Duration::from_millis(5)).await;
inwait_for_signal
, it is giving me what I expect.The text was updated successfully, but these errors were encountered: