update coroutines sample

This commit is contained in:
Evgeny
2021-08-04 13:02:59 +03:00
parent 1465156971
commit 3570854df3

View File

@@ -1,5 +1,8 @@
local co = coroutine.create(function() local co = coroutine.create(function()
while true do
ui:show_text("Hello world!") ui:show_text("Hello world!")
coroutine.yield()
end
end) end)
function on_resume() function on_resume()