My understanding of how tasks operate is limited at best and I've only used the
control field to start a task (setting it to "RUN"). I assume you're trying to use the third development use case:
- A Task node observes its input <interface> fields using the port form of the ifSGNodeField observeField() method, and returns output data with each field change. In this case, the Task node acts like a continuous server.
So maybe there's an implied "wait for the output data" in this? The documentation could be better. I used two labels and an
observeField in my task and in my main loop to "RUN" the task and then get its output when it finished. The main loop is definitely not blocking (not that I'm doing anything useful while waiting).
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.