System
constructor(name: string, maxListener = 10)
- name. system name.
- maxListener. the max store number that should be listen to system.
import { System } from "ractor"
const system = new System("app")
dispatch(message: new() => object)
broadcast message to the whole system.
system.dispatch(new Greeting("hello"))