MediumConceptGoroutines, channels and sync
When do you use a Mutex versus a channel?
This answer is part of Pro
12 of 90 Golang Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is the role of context.Context?Next What is a goroutine leak and how do you prevent it?