kyleabaker
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
02:42 PM
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?
2 REPLIES 2
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
02:45 PM
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.

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
03:16 PM
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
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 )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )