On trunk (https://github.com/onilabs/apollo ,
http://code.onilabs.com/apollo/unstable/ ) we have a new keyword 'collapse',
which we found useful for expressing some concurrent control flows that
would previously require some awkward unstructured code.
It is used to prematurely collapse the strata in a waitfor..or construct:
waitfor {
console.log('a1');
hold(1000);
console.log('a2');
}
or {
console.log('b1');
collapse; // this aborts all other waitfor..or clauses
hold(2000);
console.log('b2');
}
This code prints a1, b1, b2.