|
Or, it occurred to me later, you could use a flag along with the function. ~r1yield = 1; AppClock.sched(0, { "foo".postln; ~r1yield }); // to stop // note, DO NOT set this to zero unless you like the spinning beachball ~r1yield = nil; But I think a routine is better, since it's an actual Thread whereas a function is something else. (I wouldn't mind it if functions would not reschedule themselves after returning a number, but it is what it is... backward compatibility...) hjh On Apr 30, 2009, at 11:40 AM, James Harkins wrote:
: H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |