This morning I was struck by a question that has fortunately been answered in the mailing list go-rich language: The http://groups.google.com/group/golang-nuts?pli=1
question I have asked is: is there a smart way to go wait for all the routines have finished their execution before the closure of the main function?
.
The standard practice in Go for goroutines Seems to be to pass to a channel I know
Their signal end. For example: package main
routine func (int chan quit)
func main () {
routineQuit: = make (int chan)
go routine (routineQuit)
}
-Daniel
But then comes this link that I warmly invite you to follow if you are interested in this as I am because it says very clearly:
link.
Soon other investigations.
Merry Go everyone!
<- 1
0 comments:
Post a Comment