3 ms·
Because I shortened it for the slide. Add something at the end of main() that waits a bit (say time.Sleep(time.Minute)). What's happening is main() terminates b
by jgrahamc 14y ago
Because I shortened it for the slide. Add something at the end of main() that waits a bit (say time.Sleep(time.Minute)). What's happening is main() terminates before those goroutines get to run.
http://play.golang.org/p/rJ9eE7p7gz http://play.golang.org/p/rJ9eE7p7gz