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: 
nmaves
Visitor

Stop task when node is no longer available

I have a panel within a panelset that uses a timer to refresh itself.  I can't figure out a way to start this on init() and then stop when the panel has been replaced.

Any ideas?
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Stop task when node is no longer available

can you create the timer on init, set to invalid when panel replaced and create new timer when needed?
aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.