mlua
mlua copied to clipboard
Can we exec coroutine in hook?
debug.sethook(function() sleep(10) end, "l")
sleep(1000)
runtime error: attempt to yield across a C-call boundary
stack traceback:
[C]: in function 'coroutine.yield'
[string "?"]:9: in function 'sleep'
[string "main"]:1: in hook '?'
[string "main"]:2: in main chunk