Closed molixiaoge closed 4 months ago
Yes, that is the whole point of it. When there are one or more messages in the mailbox, the actor is scheduled on a goroutine. Once the mailbox is empty, it goes back to idle, and the goroutine is released. Once a new message arrives again, it is yet again scheduled onto a goroutine (a new one)
But there are never ever more than one goroutine running for a given actor
Thx . I understand now.
Hi, i run the example actor-helloworld.The func Receive(context actor.Context) {} called with different coroutine ,so I test concurrency map write,it work well.I want to know how it do work thread safe with differenct gocourines?