fdgfdgsdasfsdf when i call sleep(500) it errors saying "attempt to yield across a C-call boundary" please help
Dogi fdgfdgsdasfsdf Ive got the same issue and it really bothers me since i haveto wait for some seconds until http requests succeeds so that i get my values
fdgfdgsdasfsdf Samir local ui = require("ui") local window = ui.Window("",800,600) local button = ui.Button(window,"test",400,400,100,75) function button.onClick() sleep(500) end window:show() repeat ui.update() until not window.visible
Samir Yes, it's related to the bug with compiled scripts. I will provide a fix as soon as my vacation is over
Samir For the moment consider that it's not possible to sleep() from an ui event. I will fix this for LuaRT 1.5.1
Samir In this case you better use await() inside the event handler. Don't use sleep() to wait for another Task to terminate in an event handler. You can use the Task.after property too.
Samir Update : It's now fixed and will be available in next commit with a new LuaRT 1.5.2 bugfix release