ToThread converts the value at index to a Lua thread (a State). This value must be a thread, otherwise the return value will be nil. http://www.lua.org/manual/5.2/manual.html#lua_tothread
(index int)
| 852 | // |
| 853 | // http://www.lua.org/manual/5.2/manual.html#lua_tothread |
| 854 | func (l *State) ToThread(index int) *State { |
| 855 | if t, ok := l.indexToValue(index).(*State); ok { |
| 856 | return t |
| 857 | } |
| 858 | return nil |
| 859 | } |
| 860 | |
| 861 | // ToValue convertes the value at index into a generic Go interface{}. The |
| 862 | // value can be a userdata, a table, a thread, a function, or Go string, bool |
no test coverage detected