computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
900 B
11 lines
900 B
# Select |
|
|
|
The `select` statement lets a goroutine wait on multiple communication operations. |
|
|
|
A `select` blocks until one of its cases can run, then it executes that case. It chooses one at random if multiple are ready. The `select` statement is just like switch statement, but in the select statement, case statement refers to communication, i.e. sent or receive operation on the channel. |
|
|
|
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
|
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://go.dev/tour/concurrency/5'>Select</BadgeLink> |
|
<BadgeLink badgeText='Read' href='https://gobyexample.com/select'>Go by Example: Select</BadgeLink> |
|
<BadgeLink badgeText='Read' href='https://www.geeksforgeeks.org/select-statement-in-go-language/'>Select in Golang</BadgeLink> |
|
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=1c7ttSJDMAI'>Select Statement</BadgeLink>
|
|
|