`select` blocks until one of several channel operations is ready, choosing randomly among ready cases. A default clause makes it non-blocking, and combining select with time.After or a context implements timeouts and cancellation.
← Go theorytheory 0/50 · 0%
Concurrency · medium
23. select and Timeouts
Waiting on multiple channels.
Check your understanding
1. If several cases are ready, select picks…
2. A default case makes select…