macro_rules! act_ok {
($actor:ident => $expr:expr) => { ... };
($actor:ident => $body:block) => { ... };
}Expand description
Write an actor action that returns a plain T (wrapped as Ok(T)).
This macro is like act! but for actions that do not naturally return
an anyhow::Result. The output is automatically wrapped into Ok(..).
Examples
ⓘ
Self.api.call(act_ok!(actor => actor.get_value())).await
// or with a block
Self.api.call(act_ok!(actor => {
let v = actor.get_value();
v
})).await