3 system.suspend("state1");
\r
9 system.suspend("state2");
\r
15 system.suspend("state3");
\r
19 local statethread = system.newthread(state1)
\r
21 println(statethread.call());
\r
23 for(local i = 0; i < 10; i++)
\r
25 println(statethread.wakeup());
\r