Spawn 创建 Actor
(actor Actor, name string)
| 179 | |
| 180 | // Spawn 创建 Actor |
| 181 | func (s *System) Spawn(actor Actor, name string) *PID { |
| 182 | return s.spawn(actor, name, nil) |
| 183 | } |
| 184 | |
| 185 | // SpawnWithProps 使用属性创建 Actor |
| 186 | func (s *System) SpawnWithProps(actor Actor, props *Props) *PID { |