Skip to content

Commit 207e60a

Browse files
committed
Stabilize Condvar::wait_until and wait_timeout_until
1 parent 3ac40b6 commit 207e60a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/libstd/sync/condvar.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ impl Condvar {
228228
/// # Examples
229229
///
230230
/// ```
231-
/// #![feature(wait_until)]
232-
///
233231
/// use std::sync::{Arc, Mutex, Condvar};
234232
/// use std::thread;
235233
///
@@ -249,7 +247,7 @@ impl Condvar {
249247
/// // As long as the value inside the `Mutex<bool>` is `false`, we wait.
250248
/// let _guard = cvar.wait_until(lock.lock().unwrap(), |started| { *started }).unwrap();
251249
/// ```
252-
#[unstable(feature = "wait_until", issue = "47960")]
250+
#[stable(feature = "wait_until", since = "1.42.0")]
253251
pub fn wait_until<'a, T, F>(
254252
&self,
255253
mut guard: MutexGuard<'a, T>,
@@ -433,8 +431,6 @@ impl Condvar {
433431
/// # Examples
434432
///
435433
/// ```
436-
/// #![feature(wait_timeout_until)]
437-
///
438434
/// use std::sync::{Arc, Mutex, Condvar};
439435
/// use std::thread;
440436
/// use std::time::Duration;
@@ -462,7 +458,7 @@ impl Condvar {
462458
/// }
463459
/// // access the locked mutex via result.0
464460
/// ```
465-
#[unstable(feature = "wait_timeout_until", issue = "47960")]
461+
#[stable(feature = "wait_timeout_until", since = "1.42.0")]
466462
pub fn wait_timeout_until<'a, T, F>(
467463
&self,
468464
mut guard: MutexGuard<'a, T>,
@@ -613,7 +609,6 @@ impl Drop for Condvar {
613609
#[cfg(test)]
614610
mod tests {
615611
use crate::sync::atomic::{AtomicBool, Ordering};
616-
/// #![feature(wait_until)]
617612
use crate::sync::mpsc::channel;
618613
use crate::sync::{Arc, Condvar, Mutex};
619614
use crate::thread;

0 commit comments

Comments
 (0)