Creates a new thread.
Creates a new thread and pushes it on the stack. The new thread returned by this function shares with the original thread its global environment, but has an independent execution stack.
Lua state
a pointer to a lua_State that represents this new thread.
Note: There is no explicit function to close or to destroy a thread. Threads are subject to garbage collection, like any Lua object.
riverd.lua.types.lua_State
See Implementation
Creates a new thread.
Creates a new thread and pushes it on the stack. The new thread returned by this function shares with the original thread its global environment, but has an independent execution stack.