fix SyncSender spinning behavior

This commit is contained in:
Ibraheem Ahmed 2023-01-10 21:39:02 -05:00
parent a377893da2
commit 2538c0c170

View file

@ -139,6 +139,6 @@ pub fn snooze(&self) {
/// Returns `true` if quadratic backoff has completed and blocking the thread is advised.
#[inline]
pub fn is_completed(&self) -> bool {
self.step.get() > YIELD_LIMIT
self.step.get() > SPIN_LIMIT
}
}