Macro act_ok
Source macro_rules! act_ok {
($actor:ident => $expr:expr) => { ... };
($actor:ident => $body:block) => { ... };
}
Expand description
Create action returning T, auto-wrapped as Ok(T).
§Example
ⓘhandle.call(act_ok!(actor => async move {
actor.value += 1;
actor.value
})).await?