MCPcopy Create free account
hub / github.com/astercloud/aster / GetActor

Method GetActor

pkg/actor/system.go:732–740  ·  view source on GitHub ↗

GetActor 获取 Actor(用于调试)

(name string)

Source from the content-addressed store, hash-verified

730
731// GetActor 获取 Actor(用于调试)
732func (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(用于调试)
743func (s *System) ListActors() []*PID {

Callers 6

TestSystem_ParentChildFunction · 0.95
TestSystem_StopFunction · 0.95
GetAgentCardMethod · 0.80
handleMessageSendMethod · 0.80
TestActorStopMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestSystem_ParentChildFunction · 0.76
TestSystem_StopFunction · 0.76
TestActorStopMethod · 0.64