Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dreamer2057
Channel Surfer

Task - best practices in use

Hello!

I am getting lost with "Tasks" a little.

I tried to explain my question on the image.

I think that my solution is not the best, what do you think, how to get data from TaskNode (I do not mean funny examples of documentation, I'm about actual use)?

Sincerely, Sergey Shoshin, software developer.
0 Kudos
1 REPLY 1
dreamer2057
Channel Surfer

Re: Task - best practices in use

Engeneer's answer:

Define a field on your task node like .Result and whatever data you want to send back is a content node or an Associative Array.
You observe the .result field in the client of that task node.


So, best practice is on the picture. Result field and callback, without messageport.
Sincerely, Sergey Shoshin, software developer.
0 Kudos