Macro fp_rust::cor_newmutex [−][src]
macro_rules! cor_newmutex { ( $func:expr, $RETURN:ty, $RECEIVE:ty) => { ... }; }
Define a new Cor
with type.
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