macro_rules! cached_process { ( static $ident:ident : $ty:ty = $name:tt ; ) => { ... }; }
Expand description
Macro for defining a process local lookup cache for processes.
Examples
Cached lunatic::Process.
cached_process! {
static COUNTER: ProcessCached<CountMessage> = "global-counter-process";
}Cached lunatic::process::ProcessRef.
cached_process! {
static COUNTER: ProcessCached<CountMessage> = "global-counter-process-ref";
}