Is the method addRound thread safe in the below snippet?

后端 未结 0 608
梦如初夏
梦如初夏 2021-01-16 04:11
data class Game private constructor(
val id: UUID,
val host: Player,
val rival: Player? = null,
val rounds: List = emptyList()
    ) {

companion object         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题