Build Status Build status Current Crates.io Version Document

may_actor

rust native actor library based on may

Usage

```rust extern crate mayactor; use mayactor::Actor;

fn main() { struct HelloActor(u32); let a = Actor::new(HelloActor(0));

a.call(|me| {
    me.0 = 10;
    println!("hello world");
});
// the view would wait previous messages process done
a.view(|me| println!("actor value is {}", me.0));

} ```

for a detailed example, please see pi.rs

Features

Notice

This simple library doesn't support spawn actors across processes

License

may_actor is licensed under either of the following, at your option: