mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Rollup merge of #104708 - jonasspinner:fix-backoff-doc-to-match-implementation, r=compiler-errors
Fix backoff doc to match implementation
The commit 8dddb22943
in the crossbeam-channel PR (#93563) changed the backoff strategy to be quadratic instead of exponential. This updates the doc to prevent confusion.
This commit is contained in:
commit
0818ba43a4
@ -136,7 +136,7 @@ impl Backoff {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if exponential backoff has completed and blocking the thread is advised.
|
||||
/// 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
|
||||
|
Loading…
Reference in New Issue
Block a user