Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents caa76af + 0c2ce52 commit 17ab958Copy full SHA for 17ab958
src/task/spawn_local.rs
@@ -7,6 +7,7 @@ use crate::task::{Builder, JoinHandle};
7
/// # Examples
8
///
9
/// ```
10
+/// # #[cfg(feature = "unstable")]
11
/// # async_std::task::block_on(async {
12
/// #
13
/// use async_std::task;
@@ -19,6 +20,8 @@ use crate::task::{Builder, JoinHandle};
19
20
21
/// # })
22
23
+#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
24
+#[inline]
25
pub fn spawn_local<F, T>(future: F) -> JoinHandle<T>
26
where
27
F: Future<Output = T> + 'static,
0 commit comments