Supervisor
Broker
Caller
and so onadd xtor
to your library
cargo add xtor
write some code
```rs use anyhow::Result; use asynctrait::asynctrait; use xtor::actor::{context::Context, message::Handler, runner::Actor};
// first define actor struct HelloActor; impl Actor for HelloActor {}
// then define message
struct Hello;
// then impl the handler
impl Handler
// main will finish when all actors died out.
async fn main() -> Result<()> {
let helloactor = HelloActor;
let helloactoraddress = helloactor.spawn().await?;
helloactoraddress.call::
src/actor/*
for pure async actor implementationsrc/utils/*
for utilities both trait and default implementation such as
DefaultBroker
DefaultSupervisor
Service