|
|
|
|
|
by klabb3
1510 days ago
|
|
[Weird, I remember already replying to this comment.] Yes that's what I was thinking of :) I'm a bit unsure what's the value in draining the channel (which is internal to this func), given that Go should garbage collect channel (and in this case perhaps even some escape analysis). EDIT: Ah they aren't just closing the channel, but sending a time.Time. That makes sense, the timer wouldn't have anyone to send to if it's unbuffered. |
|