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

Break out of Event Loop

If I have an event loop, that is currently blocked in a wait() call, is there any way for the application to essentially post a message, and break it out of the wait condition?

I noticed in some old documentation that the ifMessagePort interface had a PostMessage() method, but it doesn't look like that exists anymore.
0 Kudos
1 REPLY 1
TheEndless
Channel Surfer

Re: Break out of Event Loop

I think your best bet is to set a non-zero wait time, and check for exit conditions in the "invalid" events.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
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.