Skip to content

Commit

Permalink
Stabilize Condvar::wait_until and wait_timeout_until
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Dec 26, 2019
1 parent 3ac40b6 commit 207e60a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/libstd/sync/condvar.rs
Expand Up @@ -228,8 +228,6 @@ impl Condvar {
/// # Examples
///
/// ```
/// #![feature(wait_until)]
///
/// use std::sync::{Arc, Mutex, Condvar};
/// use std::thread;
///
Expand All @@ -249,7 +247,7 @@ impl Condvar {
/// // As long as the value inside the `Mutex<bool>` is `false`, we wait.
/// let _guard = cvar.wait_until(lock.lock().unwrap(), |started| { *started }).unwrap();
/// ```
#[unstable(feature = "wait_until", issue = "47960")]
#[stable(feature = "wait_until", since = "1.42.0")]
pub fn wait_until<'a, T, F>(
&self,
mut guard: MutexGuard<'a, T>,
Expand Down Expand Up @@ -433,8 +431,6 @@ impl Condvar {
/// # Examples
///
/// ```
/// #![feature(wait_timeout_until)]
///
/// use std::sync::{Arc, Mutex, Condvar};
/// use std::thread;
/// use std::time::Duration;
Expand Down Expand Up @@ -462,7 +458,7 @@ impl Condvar {
/// }
/// // access the locked mutex via result.0
/// ```
#[unstable(feature = "wait_timeout_until", issue = "47960")]
#[stable(feature = "wait_timeout_until", since = "1.42.0")]
pub fn wait_timeout_until<'a, T, F>(
&self,
mut guard: MutexGuard<'a, T>,
Expand Down Expand Up @@ -613,7 +609,6 @@ impl Drop for Condvar {
#[cfg(test)]
mod tests {
use crate::sync::atomic::{AtomicBool, Ordering};
/// #![feature(wait_until)]
use crate::sync::mpsc::channel;
use crate::sync::{Arc, Condvar, Mutex};
use crate::thread;
Expand Down

0 comments on commit 207e60a

Please sign in to comment.