From 3570854df3839ced0e15933ec6baebb8ca509e90 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 4 Aug 2021 13:02:59 +0300 Subject: [PATCH] update coroutines sample --- coroutines-test.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()