Hacker News new | ask | show | jobs
by sateesh 424 days 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.