diff --git a/src/task/spawn_local.rs b/src/task/spawn_local.rs index 04da0201..7e0ce6c8 100644 --- a/src/task/spawn_local.rs +++ b/src/task/spawn_local.rs @@ -7,6 +7,7 @@ use crate::task::{Builder, JoinHandle}; /// # Examples /// /// ``` +/// # #[cfg(feature = "unstable")] /// # async_std::task::block_on(async { /// # /// use async_std::task; @@ -19,6 +20,8 @@ use crate::task::{Builder, JoinHandle}; /// # /// # }) /// ``` +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] +#[inline] pub fn spawn_local(future: F) -> JoinHandle where F: Future + 'static,