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

Method Spawn

pkg/actor/system.go:181–183  ·  view source on GitHub ↗

Spawn 创建 Actor

(actor Actor, name string)

Source from the content-addressed store, hash-verified

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

Callers 15

TestServer_GetAgentCardFunction · 0.95
TestSystem_SpawnAndSendFunction · 0.95
TestSystem_ParentChildFunction · 0.95
TestSystem_StopFunction · 0.95
TestSystem_StatsFunction · 0.95
TestSystem_ListActorsFunction · 0.95
TestPID_TellFunction · 0.95
TestPID_RequestFunction · 0.95
TestActorFuncFunction · 0.95
BenchmarkSystem_SendFunction · 0.95

Calls 1

spawnMethod · 0.95

Tested by 15

TestServer_GetAgentCardFunction · 0.76
TestSystem_SpawnAndSendFunction · 0.76
TestSystem_ParentChildFunction · 0.76
TestSystem_StopFunction · 0.76
TestSystem_StatsFunction · 0.76
TestSystem_ListActorsFunction · 0.76
TestPID_TellFunction · 0.76
TestPID_RequestFunction · 0.76
TestActorFuncFunction · 0.76
BenchmarkSystem_SendFunction · 0.76