Documentation ¶
Overview ¶
Select statement is another way to handle multiple channels. It's like switch but each case is a communication.
- All channels are evaluated.
- Blocks until one communication can proceed.
- If multiple can proceed, chooses (pseudo-)randomly.
- A default case, if present, executes immediately if no channel is ready.
Timeout the conversation when no one speaks for 800 ms.
Level: intermediate Topics: select, timeout, fan-in
Click to show internal directories.
Click to hide internal directories.