Need Assistance?

support@tutorialshub.in

Concurrency: Goroutines & Channels

Unbuffered & Buffered Channels

ADVERTISEMENT
Go (Golang) Free Lesson
5 min read
ADVERTISEMENT

Channels (make(chan string)) let goroutines pass typed values safely: ch <- val sends, and <-ch receives. Unbuffered channels synchronize sender & receiver; buffered channels (make(chan int, 10)) hold up to N items without blocking.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you