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

Method spawn

pkg/actor/system.go:191–194  ·  view source on GitHub ↗

spawn 内部创建方法

(actor Actor, name string, parent *PID)

Source from the content-addressed store, hash-verified

189
190// spawn 内部创建方法
191func (s *System) spawn(actor Actor, name string, parent *PID) *PID {
192 props := DefaultProps(name)
193 return s.spawnWithProps(actor, props, parent)
194}
195
196// spawnWithProps 使用属性创建
197func (s *System) spawnWithProps(actor Actor, props *Props, parent *PID) *PID {

Callers 2

SpawnMethod · 0.95
SpawnMethod · 0.80

Calls 2

spawnWithPropsMethod · 0.95
DefaultPropsFunction · 0.85

Tested by

no test coverage detected