sol2
sol2 copied to clipboard
Forced yielding via instruction counting
Implementations of this exist. For example, haproxy, which uses Lua's debug hooks. However, I couldn't find any mention of hooks in the Sol documentation. So I had some questions.
Has anyone tried using Lua's hooks with Sol2? Are there any potential reasons to not do it (e.g. it will mess up Sol2's internal state)? Are there any plans to create/expose a Sol2 version of the Lua C API hooks?
See also:
I'm using that functionality and it's not causing any issues for me at least.