We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a92f6c4 commit 8144fbbCopy full SHA for 8144fbb
crossbeam-channel/src/context.rs
@@ -138,21 +138,6 @@ impl Context {
138
/// If the deadline is reached, `Selected::Aborted` will be selected.
139
#[inline]
140
pub fn wait_until(&self, deadline: Option<Instant>) -> Selected {
141
- // Spin for a short time, waiting until an operation is selected.
142
- let backoff = Backoff::new();
143
- loop {
144
- let sel = Selected::from(self.inner.select.load(Ordering::Acquire));
145
- if sel != Selected::Waiting {
146
- return sel;
147
- }
148
-
149
- if backoff.is_completed() {
150
- break;
151
- } else {
152
- backoff.snooze();
153
154
155
156
loop {
157
// Check whether an operation has been selected.
158
let sel = Selected::from(self.inner.select.load(Ordering::Acquire));
0 commit comments