[go-nuts] Re: How to signal(sigint) blocking goroutine

2018-08-09 Thread gary . willoughby
See this blog post for more interesting ways to handle goroutine communication and synchronization: http://nomad.uk.net/articles/interesting-ways-of-using-go-channels.html On Wednesday, 8 August 2018 04:59:48 UTC+1, natea...@gmail.com wrote: > > https://play.golang.org/p/d5n9bYmya3r > > I'm new

[go-nuts] Re: How to signal(sigint) blocking goroutine

2018-08-09 Thread gary . willoughby
Just re-organise the code a bit, try this: https://play.golang.org/p/GMpfZlCNP9G On Wednesday, 8 August 2018 04:59:48 UTC+1, natea...@gmail.com wrote: > > https://play.golang.org/p/d5n9bYmya3r > > I'm new to the go language and trying to figure out how to sigint a > blocking goroutine. in the