JCSP Selection
Selects a channel ready for reading from an array of channels
Declare an Alternative object
- select function returns index of ready channel
- variations allow
- boolean array, channel can be selected only if boolean is true
- timer -- select continues after specified time
- skip -- select continues immediately if no channel is ready