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

Method Request

pkg/actor/types.go:50–55  ·  view source on GitHub ↗

Request 发送请求并等待响应(同步调用)

(msg Message, timeout time.Duration)

Source from the content-addressed store, hash-verified

48
49// Request 发送请求并等待响应(同步调用)
50func (p *PID) Request(msg Message, timeout time.Duration) (Message, error) {
51 if p.system == nil {
52 return nil, errors.New("actor system not available")
53 }
54 return p.system.Request(p, msg, timeout)
55}
56
57// Actor
58// 实现此接口即可成为 Actor

Callers 7

handleMessageSendMethod · 0.45
TestPID_RequestFunction · 0.45
TestBasicPingPongMethod · 0.45
TestSupervisorRestartMethod · 0.45
BenchmarkActorRequestFunction · 0.45
runBasicDemoFunction · 0.45
runSupervisorDemoFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestPID_RequestFunction · 0.36
TestBasicPingPongMethod · 0.36
TestSupervisorRestartMethod · 0.36
BenchmarkActorRequestFunction · 0.36