File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
library/std/src/sync/mpmc Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -115,21 +115,6 @@ impl Context {
115115 /// If the deadline is reached, `Selected::Aborted` will be selected.
116116 #[ inline]
117117 pub fn wait_until ( & self , deadline : Option < Instant > ) -> Selected {
118- // Spin for a short time, waiting until an operation is selected.
119- let backoff = Backoff :: new ( ) ;
120- loop {
121- let sel = Selected :: from ( self . inner . select . load ( Ordering :: Acquire ) ) ;
122- if sel != Selected :: Waiting {
123- return sel;
124- }
125-
126- if backoff. is_completed ( ) {
127- break ;
128- } else {
129- backoff. snooze ( ) ;
130- }
131- }
132-
133118 loop {
134119 // Check whether an operation has been selected.
135120 let sel = Selected :: from ( self . inner . select . load ( Ordering :: Acquire ) ) ;
You can’t perform that action at this time.
0 commit comments