Re: [go-nuts] Long running task in select case

2018-03-16 Thread roger peppe
On 16 March 2018 at 14:45, Sathish VJ wrote: > All the examples I've seen use some kind of ticker to run various cases of a > select statement. But how does one run a long running task that is still > cancelable? > > > In the example below the quit part is never reached. > > https://play.golang.o

Re: [go-nuts] Long running task in select case

2018-03-16 Thread Burak Serdar
On Fri, Mar 16, 2018 at 8:45 AM, Sathish VJ wrote: > All the examples I've seen use some kind of ticker to run various cases of a > select statement. But how does one run a long running task that is still > cancelable? > > > In the example below the quit part is never reached. > > https://play.go

[go-nuts] Long running task in select case

2018-03-16 Thread Sathish VJ
All the examples I've seen use some kind of ticker to run various cases of a select statement. But how does one run a long running task that is still cancelable? In the example below the quit part is never reached. https://play.golang.org/p/PLGwrUvKaqn (it does not run properly on pla