Re: [go-nuts] Timeout using Select from "Go Design Pattern"

2016-09-23 Thread ishantagarwal1986
Hi Every time you call time.After, it allocates a new time.Timer object. Morever someone in this link at last mentions that timer object does get cleaned up once the timer has fired. Also golang doc suggests that "The underlying

Re: [go-nuts] Timeout using Select from "Go Design Pattern"

2016-09-23 Thread ishantagarwal1986
Considering what is mentioned in the video, it looks like whenever a second has gone by and a message is not returned only then the exit from loop will happen. Which means the loop may run indefinitely as well if boring function keeps on returning something or the other within a second on the c