// Globals 6: global Events global Event metro; global Event oneAtATime; global Event allAtOnce; fun void wait1() { oneAtATime => now; <<< "signaled!", now / second >>>; } spork ~ wait1(); spork ~ wait1(); fun void wait2() { allAtOnce => now; <<< "broadcasted!", now / second >>>; } spork ~ wait2(); spork ~ wait2(); fun void RideTheMetro() { while( true ) { 0.348::second => now; metro.broadcast(); } } spork ~ RideTheMetro(); while( true ) { 1::second => now; }

File name to use in ChucK:

Local file to upload:

shred | code | time | remove
--- | --- | --- | ---