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.
1 parent 95b9435 commit dccc58aCopy full SHA for dccc58a
tokio/src/task/task_local.rs
@@ -31,6 +31,7 @@ use std::{fmt, thread};
31
///
32
/// [`tokio::task::LocalKey`]: struct@crate::task::LocalKey
33
#[macro_export]
34
+#[cfg_attr(docsrs, doc(cfg(all(feature = "rt-util", feature = "rt-core"))))]
35
macro_rules! task_local {
36
// empty (base case for the recursion)
37
() => {};
@@ -90,6 +91,7 @@ macro_rules! __task_local_inner {
90
91
/// # }
92
/// ```
93
/// [`std::thread::LocalKey`]: struct@std::thread::LocalKey
94
95
pub struct LocalKey<T: 'static> {
96
#[doc(hidden)]
97
pub inner: thread::LocalKey<RefCell<Option<T>>>,
0 commit comments