Macro fp_rust::cor_newmutex_and_start[][src]

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