mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
spin less in mpsc::SyncSender::send
This commit is contained in:
parent
f2966d1d0c
commit
f2b5e27a60
@ -330,7 +330,7 @@ impl<T> Channel<T> {
|
||||
if backoff.is_completed() {
|
||||
break;
|
||||
} else {
|
||||
backoff.snooze();
|
||||
backoff.spin();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user