Pantomime is a concurrent programming library for the Rust programming language.

  • An Actor-based concurrency and programming model.
  • A personal programming playground.
use pantomime::prelude::*;

enum Msg {
  Greet(String)
}

struct MyActor;

impl Actor<Msg> for MyActor {
  fn receive(&mut self, msg: Msg, ctx: &mut ActorCtx) {
    match msg {
      Greet(name) => println!("Hello {}!", name)
    }
  }
}