Explore >> Select a destination


You are here

antonz.org
| | machiel.me
2.4 parsecs away

Travel
| | Freelance developer from Amsterdam, passionate about Go
| | mariocarrion.com
2.6 parsecs away

Travel
| | No language changes but really nice additions.
| | konradreiche.com
4.3 parsecs away

Travel
| | Starting a goroutine is as easy as adding the go keyword in front of a method, but managing the lifecycle of a goroutine is not. If you only need to start a few goroutines and wait for their completion, you are off the hook thanks to sync.WaitGroup. However, what if a goroutine has to run for a specific duration or repeatatly in a loop until the initiating code terminates? Does it matter? After all, if the main goroutine terminates, any other goroutine will also stop. It does matter, because depending on what the goroutines are doing, it might leave your system in an inconsistent or invalid state. Channels are a commonly used to signal to a goroutine that it can shut down, but I often see the use of a signaling channel, for example chan bool or chan struct{}...
| | www.pl-enthusiast.net
23.6 parsecs away

Travel
| This post describes the structure, goals, and content of CMSC 330, UMD's sophomore-level programming languages course. This is part 1.