You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into tick() not working properly on Windows. Seems to hang select!{} except an occasional run of the binary would see a tick fire.
Example code used below, works on macOS & Rust playground, on windows it times out a few times & then hangs:
use crossbeam_channel as chan;use std::time::{Duration,Instant};fnmain(){let x = chan::tick(Duration::from_millis(50));letmut i = 0;while i < 10{
chan::select! {
recv(x) -> msg => { i += 1; println!("{} {:?}", i, msg); },
default(Duration::from_millis(10)) => { println!("timeout"); },
}}}
Ran into
tick()
not working properly on Windows. Seems to hangselect!{}
except an occasional run of the binary would see a tick fire.Example code used below, works on macOS & Rust playground, on windows it times out a few times & then hangs:
This also hangs, no
select!
used:The text was updated successfully, but these errors were encountered: