GetActor 获取 Actor(用于调试)
(name string)
| 730 | |
| 731 | // GetActor 获取 Actor(用于调试) |
| 732 | func (s *System) GetActor(name string) (*PID, bool) { |
| 733 | s.actorsMu.RLock() |
| 734 | defer s.actorsMu.RUnlock() |
| 735 | |
| 736 | if cell, ok := s.actors[name]; ok { |
| 737 | return cell.pid, true |
| 738 | } |
| 739 | return nil, false |
| 740 | } |
| 741 | |
| 742 | // ListActors 列出所有 Actor(用于调试) |
| 743 | func (s *System) ListActors() []*PID { |
no outgoing calls