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

'Sleep' doesn't work

    print "onSetSponsorLogo 1"
    Sleep(2000)
    print "onSetSponsorLogo 2"


Above is the code. 
Both "prints" outputs immediately, no pause. Why?
The code invoked in my own component, in field change handling (via 'observeField').
0 Kudos
1 REPLY 1
EnTerr
Roku Guru

Re: 'Sleep' doesn't work

I am fairly certain this is intentional - but surprised there is no runtime error.
In no event should the render thread be delayed (think hot potato).
0 Kudos