Skip to content

Commit 2081de9

Browse files
ibraheemdevMark-Simulacrum
authored andcommitted
fix SyncSender spinning behavior
1 parent 62173f9 commit 2081de9

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 exponential 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)