steve64 What's the preferred way to run a task concurrent to the GUI main loop with LuaRT ? So far I tried with something like: while win.visible do ui.update() --> do something else here end but I'm wondering if there is a better way, e.g. coroutines...
Samir You are right, inside the ui.update() loop is the simplest method to do other things. You can use some coroutine magic to prevent the program from becoming paralyzed. Look at the binary.wlua example that uses this method to prevent the Window to hang while reading big files.