We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c867835 commit a254feaCopy full SHA for a254fea
lua/sync.lua
@@ -43,8 +43,11 @@ local function async(func)
43
error("unhandled error " .. thunk)
44
end
45
46
- if co.status(thread) == "dead" and parent_handler_callback then
47
- parent_handler_callback(thunk)
+ assert(ok, thunk)
+ if co.status(thread) == "dead" then
48
+ if parent_handler_callback then
49
+ parent_handler_callback(thunk)
50
+ end
51
else
52
assert(type(thunk) == "function", "type error :: expected func")
53
thunk(step)
0 commit comments