I’m playing with channels and ‘select’ trying to get the equivalent of ‘default’ from ‘go’. In the docs for select it suggest using tht ‘non-suspending’ version of receive, i.e ‘poll’ in a regular ‘when’ expression.
So two questions: It seems to me that ‘poll’ and ‘select’ don’t need to be and probably wouldn’t be used togehter?
Caould I use onTimeout(0) to simulate a ‘defaule’ inside a select builder, or am I missing something fundamental?