pub trait Task: TaskContextTrait {
// Required method
fn task<'life0, 'async_trait>(
&'life0 self,
ctx: Self::Context,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Used to call arbitrary code on a task actor.