Skip to content

Commit 2538c0c

Browse files
committed
fix SyncSender spinning behavior
1 parent a377893 commit 2538c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/mpmc/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ impl Backoff {
139139
/// Returns `true` if quadratic backoff has completed and blocking the thread is advised.
140140
#[inline]
141141
pub fn is_completed(&self) -> bool {
142-
self.step.get() > YIELD_LIMIT
142+
self.step.get() > SPIN_LIMIT
143143
}
144144
}

0 commit comments

Comments
 (0)