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 givenFnMut
, the execution code ofCor
.RETURN
- The type of returned dataRECEIVE
- The type of received data