Not until 'c' is closed. Also, http://localhost:6060/ref/spec#Close
On Wednesday, January 4, 2017 at 1:28:41 PM UTC-7, Kritta wrote: > > In other word, Will GC collect this channel for me. > > On Thursday, January 5, 2017 at 3:26:07 AM UTC+7, Kritta wrote: >> >> For example, >> >> go func() { >> c <- true //This is blocked cause c is full >> method1() >> } >> >> Others goroutine include main has no reference to 'c', so there're no way >> out for 'c'. >> Questions: >> >> 1. Will method1() be executed and when? >> 2. Will this gorountine released or still there forever? >> >> -- 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.