Mostly resolves #95, I chose not to have the parent lua state keep track of threads. Seemed unneeded.
This PR renames LuaThread to LuaCoroutine in favor of being less confusing.
Also added:
Support to pull coroutines created via coroutine.create as a LuaCoroutine. I could not get pushing LuaCourtines working however. For some reason it just would not work. Hopefully a fix can be found in the future.
new method on the LuaAPI class new_coroutine, which takes no arguments and returns a LuaCoroutine
Removed:
the new_thread static method has been removed from the LuaThread/LuaCoroutine class in favor of the new method on LuaAPI.
Before merge
Online documentation needs to be updated to reflect changes.
Mostly resolves #95, I chose not to have the parent lua state keep track of threads. Seemed unneeded. This PR renames LuaThread to LuaCoroutine in favor of being less confusing.
Also added:
Removed:
Before merge
Online documentation needs to be updated to reflect changes.