A lightweight, high-performance Actor concurrency framework for MoonBit
fn[State, Msg] ActorSystem::spawn(self : ActorSystem, behavior : (Context, State, Msg) -> State raise, initial_state : State, supervisor? : Supervisor) -> ActorRef[Msg]pub struct Context {
system_id : Int
actor_id : Int
}pub enum SupervisionStrategy {
OneForOne
OneForAll
RestForOne
}Install
Download zipA lightweight, high-performance Actor concurrency framework for MoonBit