kaguya
kaguya copied to clipboard
how can I check function has timeout
I need check is timeout when run a lua function,if timeout, then break it
Lua is synchronous. The only way this can work is if you run your Lua function in a separate thread (and I'm not sure if Lua/Kaguya are thread-safe or not so this might be a bit more tricky) and implement a thread timeout in C++.