while (false == in.pending())
{
}
Polling is inefficient and can usually be avoided in C++CSP2. For example the above code could simply read from the channel, which would make it wait until there was a writer ready. If you need to wait for one of multiple events, a