update coroutines sample
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
local co = coroutine.create(function()
|
local co = coroutine.create(function()
|
||||||
ui:show_text("Hello world!")
|
while true do
|
||||||
|
ui:show_text("Hello world!")
|
||||||
|
coroutine.yield()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
function on_resume()
|
function on_resume()
|
||||||
|
|||||||
Reference in New Issue
Block a user