mirror of
https://github.com/britzl/monarch.git
synced 2025-11-26 19:00:53 +01:00
Print errors if caught in the callback tracker
This commit is contained in:
@@ -44,7 +44,10 @@ function M.create()
|
|||||||
function instance.yield_until_done()
|
function instance.yield_until_done()
|
||||||
local co = coroutine.running()
|
local co = coroutine.running()
|
||||||
callback = function()
|
callback = function()
|
||||||
coroutine.resume(co)
|
local ok, err = coroutine.resume(co)
|
||||||
|
if not ok then
|
||||||
|
print(err)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
invoke_if_done()
|
invoke_if_done()
|
||||||
if not is_done() then
|
if not is_done() then
|
||||||
|
|||||||
Reference in New Issue
Block a user