macro_rules! act { ($actor:ident => $expr:expr) => { ... }; ($actor:ident => $body:block) => { ... }; }
Create action returning Result<T, E>.
Result<T, E>
handle.call(act!(actor => async move { if actor.value < 0 { Err(io::Error::new(io::ErrorKind::Other, "negative")) } else { Ok(actor.value) } })).await?