Skip to main content

task_local

Macro task_local 

Source
macro_rules! task_local {
    ($(#[$attr:meta])* $vis:vis static $name:ident : $ty:ty ; $($rest:tt)*) => { ... };
    () => { ... };
}
Expand description

Declare a task-local key.

§Example

moduvex_runtime::task_local! {
    static MY_KEY: String;
}