Re: [go-nuts] http.shutdownPollInterval documentation
Thanks. I was fairly certain that's what it meant. Wasting more time, the pedant in me argues - but "Left as an exercise for the reader" generally implies it's a solved problem and the reader is to take time to re-solve to hone their skills. On Friday, 23 February 2018 00:50:24 UTC, Ian Lance Taylor wrote: > > On Thu, Feb 22, 2018 at 1:50 PM, Sridhar > wrote: > > > > In https://golang.org/src/net/http/server.go the documentation for > > shutdownPollInterval (admittedly unexported) reads: > > > > // Ideally we could find a solution that doesn't involve polling, > > > > // but which also doesn't have a high runtime cost (and doesn't > > > > // involve any contentious mutexes), but that is left as an > > > > // exercise for the reader. > > > > Is this a remnant from a book on Go ? If so which one ? > > It's not from a book. "Left as an exercise for the reader" is just a > saying. It means, approximately, "we're not sure how to do it, but if > you can figure it out, please send a fix." > > 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.
Re: [go-nuts] http.shutdownPollInterval documentation
On Thu, Feb 22, 2018 at 1:50 PM, Sridhar wrote: > > In https://golang.org/src/net/http/server.go the documentation for > shutdownPollInterval (admittedly unexported) reads: > > // Ideally we could find a solution that doesn't involve polling, > > // but which also doesn't have a high runtime cost (and doesn't > > // involve any contentious mutexes), but that is left as an > > // exercise for the reader. > > Is this a remnant from a book on Go ? If so which one ? It's not from a book. "Left as an exercise for the reader" is just a saying. It means, approximately, "we're not sure how to do it, but if you can figure it out, please send a fix." 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.
[go-nuts] http.shutdownPollInterval documentation
In https://golang.org/src/net/http/server.go the documentation for shutdownPollInterval (admittedly unexported) reads: // Ideally we could find a solution that doesn't involve polling, // but which also doesn't have a high runtime cost (and doesn't // involve any contentious mutexes), but that is left as an // exercise for the reader. Is this a remnant from a book on Go ? If so which one ? -- 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.