Run() waits for the process to exit, so in reality only the third thing there is ever run. Use Start() instead.
select{} blocks forever. > On Nov 16, 2016, at 5:15 PM, Michael Jones <michael.jo...@gmail.com> wrote: > > After your for loop, you could add: > > fmt.Println(math.Inf(0)) > > > From: <golang-nuts@googlegroups.com> on behalf of Nikita Loskutov > <cna...@gmail.com> > Date: Wednesday, November 16, 2016 at 1:58 PM > To: golang-nuts <golang-nuts@googlegroups.com> > Subject: [go-nuts] Reaching infinity > > Hello! > > I've wrote this small code snippet in STRICTLY ACADEMIC PURPOSE, see comments. > https://gist.github.com/cnaize/c106969508bdd898cc3b5026c110ed65 > > As I think in this 2 lines of the code where are "3 infinities": > 1 - infinity for loop > 2 - goroutines infinity > 3 - program itself infinity > > Is anybody know how to increase "infinities count"? > -- > 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 > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > 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 > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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.