Adentures in Go
Playing with
go
[
view source
]
Monday, September 26, 2011
Simulate event with closing a channel
rog
had showed me
a nice way to synchronise several goroutines (something like an event) by closing a channel. Here's a code example:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment