Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kyleabaker
Level 7

Backgrounding tasks so they won't delay UI interaction

I'd like to be able to run a background process posting and fetching content from urls, but I don't want that to pause or delay the UI from loading (because neither of these are critical to the UI displaying and could potentially take some time to complete). Is there a way to execute a function in the background so it doesn't delay any user interactions?
0 Kudos
2 REPLIES 2\
destruk
Level 10

Re: Backgrounding tasks so they won't delay UI interaction

Roku is single-threaded. So if you use the same message port for everything and keep it in focus throughout all your subroutines, then you could do it with asynchronous calls.
0 Kudos
NewManLiving
Level 8

Re: Backgrounding tasks so they won't delay UI interaction

You can look at the async operations of the rourltransfer
And texture manager You just have to check their
Ports from time to time
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos