mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-04 17:19:41 +00:00
fix doc missing in #815
This commit is contained in:
parent
5f418f07ac
commit
0c2ce52ac4
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ use crate::task::{Builder, JoinHandle};
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
/// # #[cfg(feature = "unstable")]
|
||||||
/// # async_std::task::block_on(async {
|
/// # async_std::task::block_on(async {
|
||||||
/// #
|
/// #
|
||||||
/// use async_std::task;
|
/// 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>
|
pub fn spawn_local<F, T>(future: F) -> JoinHandle<T>
|
||||||
where
|
where
|
||||||
F: Future<Output = T> + 'static,
|
F: Future<Output = T> + 'static,
|
||||||
|
|
Loading…
Reference in a new issue