spin less in mpsc::SyncSender::send

This commit is contained in:
Ibraheem Ahmed 2022-10-17 19:44:58 -04:00
parent f2966d1d0c
commit f2b5e27a60

View File

@ -330,7 +330,7 @@ impl<T> Channel<T> {
if backoff.is_completed() {
break;
} else {
backoff.snooze();
backoff.spin();
}
}