Roku Developer Program

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

'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
EnTerr
Level 9

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