mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
5da7f36485
[library/std] Replace condv while loop with `cvar.wait_while`. `wait_while` takes care of spurious wake-ups in centralized place, reducing chances for mistakes and potential future optimizations (who knows, maybe in future there will be no spurious wake-ups? :)