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 <[email protected]> wrote:
> 
> After your for loop, you could add:
>  
> fmt.Println(math.Inf(0))
>  
>  
> From: <[email protected]> on behalf of Nikita Loskutov 
> <[email protected]>
> Date: Wednesday, November 16, 2016 at 1:58 PM
> To: golang-nuts <[email protected]>
> 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 [email protected] 
> <mailto:[email protected]>.
> 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 [email protected] 
> <mailto:[email protected]>.
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to