"kevxcs" wrote:
I thought the task ran in it's own thread?
As you've discovered, only the "functionName" runs in it's own thread, and only when the task is "RUN". "onChange" events always run in the render thread, even when triggered by a task thread.
Your solution looks like the right way to go about what you're trying to do, but "WAIT" isn't a valid value for Task.control, and doesn't actually accomplish anything, so you could get rid of that line.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)