============== 测试 Actor ============== EchoActor 回声 Actor,收到消息后回复发送者
| 40 | |
| 41 | // EchoActor 回声 Actor,收到消息后回复发送者 |
| 42 | type EchoActor struct{} |
| 43 | |
| 44 | func (a *EchoActor) Receive(ctx *Context, msg Message) { |
| 45 | switch m := msg.(type) { |
nothing calls this directly
no outgoing calls
no test coverage detected