[go-nuts] Re: [golang-dev] Go 1.10 Beta 2 is released

2018-01-17 Thread bob . hiestand
On Thursday, January 11, 2018 at 2:28:36 PM UTC-6, Ian Lance Taylor wrote: > > > Please do test this if you can. There are significant changes to the > go tool. Please report bugs now, so that we can fix them before the > final release. > > In particular, there are significant changes to the

[go-nuts] Go-Routine, Concurrency Doubt

2016-11-06 Thread bob . hiestand
SJ, If what you're asking is whether the tasks will be evenly spread among the goroutines, the answer is no. You can't guarantee such an even distribution, though over time with many more tasks than threads, all taking approximately the same amount of time, I assume you'd see a mostly smooth

[go-nuts] SetDeadline for io.Writer - is this right?

2016-11-06 Thread bob . hiestand
The simplest answer to the question as written is to change line 46 to make the response channel buffered: result: make(chan resp, 1), However, you don't have to worry about leaking open channels. For channels, close() is a signal, not resource management. Open channel