1 // signal-4.ck : one event signals 4 shreds
6 // the base function of our shreds
7 fun int hi( Event e, string id )
18 // spork our shreds with different strings
19 spork ~ hi( e, "yo" );
20 spork ~ hi( e, "hi" );
21 spork ~ hi( e, "hello" );
22 spork ~ hi( e, "hey come back here!" );
24 // may want to yield to give shreds chance to start
32 // advance time by 1 second (alternative: me.yield())