7 ms·
> In this case, a deferred call to close the channel in HandlePlayer is sufficient It is not clear from the example, but I presume there would multiple players
by sateesh 1y ago
> In this case, a deferred call to close the channel in HandlePlayer is sufficient
It is not clear from the example, but I presume there would multiple players, i.e there will calls of the form:
g.HandlePlayer(p1)
g.HandlePlayer(p2)
..
in such a case one player closing the channel would affect rest of the producers too.