Using signal channels to synchronize communication between goroutines.