sealrs 0.13.2

Set of classic asynchronous primitives (Actors, Executors, Futures / Promises)
Documentation
use crate::actors::prelude::*;
use crate::examples::actors::basic::basic_actor;
use std::sync::{Mutex, Arc};
use std::thread;
use std::time::Duration;

pub fn run() {
    let mut system = LocalActorSystem::new();

    let mut printer = system
        .actor_of(basic_actor::props(), Some("printer"));

    let msg = msg!(basic_actor::Print { text: String::from("Hello world!") });
    printer.tell(msg, None);

    thread::sleep(Duration::from_secs(1));

    system.terminate();
}