Macro fp_rust::cor_newmutex_and_start [−][src]
macro_rules! cor_newmutex_and_start { ($func:expr, $RETURN:ty, $RECEIVE:ty) => { ... }; }
Define a new Cor
with type and start it immediately.
It will return a Arc<Mutex<Cor>>
.
Arguments
func
- The givenFnMut
, the execution code ofCor
.RETURN
- The type of returned dataRECEIVE
- The type of received data