fix SyncSender
spinning behavior
This commit is contained in:
parent
a377893da2
commit
2538c0c170
1 changed files with 1 additions and 1 deletions
|
@ -139,6 +139,6 @@ impl Backoff {
|
|||
/// 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue