Use mutex in match handler methods in Golang runtime

Hello all,
How can i use mutex to synchronize access to match state in match handler methods ex. MatchJoinAttempt(), MatchJoin() when multi users join one room at the same time.

You don’t need to add a mutex to the match handlers. Nakama ensures that the calls to each of the match lifecycle functions are linear.

2 Likes