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

BusySpinner

I created a BusySpinner in BS and repeatedly called a TASK to build up a scroll-able screen.There could be a large number of entries, so I call the TASK for multiple groups.I started with a group of 200 but it looks like the spinner hangs until the TASK completes. Lowered it to a group of 20, just so the spinner would.
The spinner STOPS while running the TASK. I guess because it runs under my BS activity ?

Would creating the spinner inside of a TASK make it functional ?
0 Kudos
2 REPLIES 2
speechles
Roku Guru

Re: BusySpinner

You mean would the spinner keep spinning with a task. Yes.

https://github.com/rokudev/hero-grid-ch ... gIndicator

That example might help.

The thread you call the BS Activity thread is actually the render thread. Inside a task is the worker thread. Inside the worker thread you can animate the indicator that shows in the render thread.
0 Kudos
norcaljohnny
Roku Guru

Re: BusySpinner

Sounds like you are just calling it to start and stop in the wrong spots.. I'm not sure I even fully understand the question but I have had no problems and I have tested it with over 10,000 files rendering in a task.
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.