|
Corowatch: Lua module to watch coroutine usage and kill a coroutine if it fails to yield in a timely manner. The main purpose is preventing code from locking the Lua state. As a convenience function coroutine.wrapf() is
included which allows any function to be watched, not only coroutines. It provides callbacks upon warning/killing, see example in the
readme. Updated in v1.0: - it no longer automatically monkey patches the global tables. It now has an `export` function to do so, if necessary. - example to check performance loss Repo: https://github.com/Tieske/corowatch Docs: http://tieske.github.io/corowatch/ Install through LuaRocks (might take a while for the rockspec to land) Comments are welcome Thijs |