diff --git a/coroutines-test.lua b/coroutines-test.lua index f62fe0c..a8cfeb2 100644 --- a/coroutines-test.lua +++ b/coroutines-test.lua @@ -1,5 +1,8 @@ local co = coroutine.create(function() - ui:show_text("Hello world!") + while true do + ui:show_text("Hello world!") + coroutine.yield() + end end) function on_resume()