CounterActor 计数器 Actor - 线程安全的计数器
| 130 | |
| 131 | // CounterActor 计数器 Actor - 线程安全的计数器 |
| 132 | type CounterActor struct { |
| 133 | name string |
| 134 | count int |
| 135 | } |
| 136 | |
| 137 | func (a *CounterActor) Receive(ctx *actor.Context, msg actor.Message) { |
| 138 | switch m := msg.(type) { |
nothing calls this directly
no outgoing calls
no test coverage detected