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

Method Send

pkg/actor/system.go:260–262  ·  view source on GitHub ↗

Send 发送消息(无发送者)

(target *PID, msg Message)

Source from the content-addressed store, hash-verified

258
259// Send 发送消息(无发送者)
260func (s *System) Send(target *PID, msg Message) {
261 s.SendWithSender(target, msg, nil)
262}
263
264// SendWithSender 发送消息(带发送者)
265func (s *System) SendWithSender(target *PID, msg Message, sender *PID) {

Callers 9

TestSystem_SpawnAndSendFunction · 0.95
BenchmarkSystem_SendFunction · 0.95
StopMethod · 0.95
applyDirectiveMethod · 0.95
restartAllSiblingsMethod · 0.95
cleanupActorMethod · 0.95
TellMethod · 0.45

Calls 1

SendWithSenderMethod · 0.95

Tested by 4

TestSystem_SpawnAndSendFunction · 0.76
BenchmarkSystem_SendFunction · 0.76