gen.Server HandleInfo run in different goroutine #119
Unanswered
xiaodoudou12
asked this question in
Q&A
Replies: 1 comment
-
Thanks for your question. We should be able to handle incoming messages in case of making sync requests during callback handling (e.g., do process.Call(to, msg) within HandleCast callback). Basically, any sync request is just a pair of async messages with some internal lock. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't understand why start a new goroutine when ServerProcess receive CastMessage or InfoMessage.
I think ServerProcess is like a Process in erlang,gen.Server like a gen_server in erlang,as a actor, HandleInfo and HandleCall should run in the same process.
Beta Was this translation helpful? Give feedback.
All reactions