Merge pull request #820 from zhaxzhax/docs-#815

pull/825/head
Friedel Ziegelmayer 5 years ago committed by GitHub
commit 17ab958ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<F, T>(future: F) -> JoinHandle<T>
where
F: Future<Output = T> + 'static,

Loading…
Cancel
Save