Merge branch 'master' into cleanup-stream

pull/506/head
Stjepan Glavina 5 years ago
commit dc5d143c16

@ -28,6 +28,7 @@ impl<F> Unpin for FromFn<F> {}
/// # /// #
/// use async_std::prelude::*; /// use async_std::prelude::*;
/// use async_std::stream; /// use async_std::stream;
/// use async_std::sync::{Arc, Mutex};
/// ///
/// let mut count = 0u8; /// let mut count = 0u8;
/// let s = stream::from_fn(|| { /// let s = stream::from_fn(|| {

@ -155,9 +155,7 @@
//! ``` //! ```
//! # async_std::task::block_on(async { //! # async_std::task::block_on(async {
//! # //! #
//! use std::sync::Arc; //! use async_std::sync::{Arc, Mutex};
//!
//! use async_std::sync::Mutex;
//! use async_std::task; //! use async_std::task;
//! //!
//! let m1 = Arc::new(Mutex::new(0)); //! let m1 = Arc::new(Mutex::new(0));

@ -19,9 +19,7 @@ use crate::task::{Context, Poll};
/// ``` /// ```
/// # async_std::task::block_on(async { /// # async_std::task::block_on(async {
/// # /// #
/// use std::sync::Arc; /// use async_std::sync::{Arc, Mutex};
///
/// use async_std::sync::Mutex;
/// use async_std::task; /// use async_std::task;
/// ///
/// let m = Arc::new(Mutex::new(0)); /// let m = Arc::new(Mutex::new(0));
@ -77,9 +75,7 @@ impl<T> Mutex<T> {
/// ``` /// ```
/// # async_std::task::block_on(async { /// # async_std::task::block_on(async {
/// # /// #
/// use std::sync::Arc; /// use async_std::sync::{Arc, Mutex};
///
/// use async_std::sync::Mutex;
/// use async_std::task; /// use async_std::task;
/// ///
/// let m1 = Arc::new(Mutex::new(10)); /// let m1 = Arc::new(Mutex::new(10));
@ -155,9 +151,7 @@ impl<T> Mutex<T> {
/// ``` /// ```
/// # async_std::task::block_on(async { /// # async_std::task::block_on(async {
/// # /// #
/// use std::sync::Arc; /// use async_std::sync::{Arc, Mutex};
///
/// use async_std::sync::Mutex;
/// use async_std::task; /// use async_std::task;
/// ///
/// let m1 = Arc::new(Mutex::new(10)); /// let m1 = Arc::new(Mutex::new(10));

Loading…
Cancel
Save