mlua icon indicating copy to clipboard operation
mlua copied to clipboard

Can we exec coroutine in hook?

Open rise0chen opened this issue 2 years ago • 0 comments

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

rise0chen avatar Jun 08 '23 03:06 rise0chen