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

Struct CounterActor

examples/actor/main.go:132–135  ·  view source on GitHub ↗

CounterActor 计数器 Actor - 线程安全的计数器

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected