cor_newmutex_and_start

Macro cor_newmutex_and_start 

Source
macro_rules! cor_newmutex_and_start {
    ($func:expr, $RETURN:ty, $RECEIVE:ty) => { ... };
}
Expand description

Define a new Cor with type and start it immediately. It will return a Arc<Mutex<Cor>>.

ยงArguments

  • func - The given FnMut, the execution code of Cor.
  • RETURN - The type of returned data
  • RECEIVE - The type of received data