Skip to content

Commit 0818ba4

Browse files
authored
Rollup merge of #104708 - jonasspinner:fix-backoff-doc-to-match-implementation, r=compiler-errors
Fix backoff doc to match implementation The commit 8dddb22 in the crossbeam-channel PR (#93563) changed the backoff strategy to be quadratic instead of exponential. This updates the doc to prevent confusion.
2 parents 58233e9 + 70bba3b commit 0818ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl Backoff {
136136
}
137137
}
138138

139-
/// Returns `true` if exponential backoff has completed and blocking the thread is advised.
139+
/// Returns `true` if quadratic backoff has completed and blocking the thread is advised.
140140
#[inline]
141141
pub fn is_completed(&self) -> bool {
142142
self.step.get() > YIELD_LIMIT

0 commit comments

Comments
 (0)