On Fri, Oct 13, 2017 at 3:52 AM, <vit1...@gmail.com> wrote: > > As I can understand from manuals prefered way to communicate between > gorutine is channel but in core component net/http we have shared method > Shutdown > > Why and how it work? Why autor violate language ideology by himself?
There are various ways to communicate between goroutines. Channels is one way but there are others. I don't understand the contradiction you see between the (*Server).Shutdown method and communication using channels. The Shutdown method does in fact use a channel to communicate the request--see closeDoneChanLocked. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.