@@ -263,7 +263,7 @@ impl Condvar {
263
263
/// // As long as the value inside the `Mutex` is false, we wait.
264
264
/// cvar.wait_until(lock.lock().unwrap(), |started| { started });
265
265
/// ```
266
- #[ stable ( feature = "wait_until" , since = "1.24 " ) ]
266
+ #[ unstable ( feature = "wait_until" , issue = "47960 " ) ]
267
267
pub fn wait_until < ' a , T , F > ( & self , mut guard : MutexGuard < ' a , T > ,
268
268
mut condition : F )
269
269
-> LockResult < MutexGuard < ' a , T > >
@@ -470,9 +470,9 @@ impl Condvar {
470
470
/// }
471
471
/// // access the locked mutex via result.0
472
472
/// ```
473
- #[ stable ( feature = "wait_timeout_until" , since = "1.24 " ) ]
473
+ #[ unstable ( feature = "wait_timeout_until" , issue = "47960 " ) ]
474
474
pub fn wait_timeout_until < ' a , T , F > ( & self , mut guard : MutexGuard < ' a , T > ,
475
- mut dur : Duration , mut condition : F )
475
+ dur : Duration , mut condition : F )
476
476
-> LockResult < ( MutexGuard < ' a , T > , WaitTimeoutResult ) >
477
477
where F : FnMut ( & mut T ) -> bool {
478
478
let start = Instant :: now ( ) ;
@@ -483,7 +483,7 @@ impl Condvar {
483
483
let timeout = match dur. checked_sub ( start. elapsed ( ) ) {
484
484
Some ( timeout) => timeout,
485
485
None => return Ok ( ( guard, WaitTimeoutResult ( true ) ) ) ,
486
- }
486
+ } ;
487
487
guard = self . wait_timeout ( guard, timeout) ?. 0 ;
488
488
}
489
489
}
0 commit comments