RemoveContext removes the context associated with this LState and returns this context.
()
| 2270 | |
| 2271 | // RemoveContext removes the context associated with this LState and returns this context. |
| 2272 | func (ls *LState) RemoveContext() context.Context { |
| 2273 | oldctx := ls.ctx |
| 2274 | ls.mainLoop = mainLoop |
| 2275 | ls.ctx = nil |
| 2276 | return oldctx |
| 2277 | } |
| 2278 | |
| 2279 | // Converts the Lua value at the given acceptable index to the chan LValue. |
| 2280 | func (ls *LState) ToChannel(n int) chan LValue { |
no outgoing calls