When you have multiple channels ready in a select statement, go will select a ready channel randomly: For example: package main import "fmt" func main() { a := make(chan int, 10) b := make(chan int, 10) c := make(chan int, 10) for ...
Markdown supported · ⌘↵ to post
No responses yet.