SetContext set a context ctx to this LState. The provided ctx must be non-nil.
(ctx context.Context)
| 2259 | |
| 2260 | // SetContext set a context ctx to this LState. The provided ctx must be non-nil. |
| 2261 | func (ls *LState) SetContext(ctx context.Context) { |
| 2262 | ls.mainLoop = mainLoopWithContext |
| 2263 | ls.ctx = ctx |
| 2264 | } |
| 2265 | |
| 2266 | // Context returns the LState's context. To change the context, use WithContext. |
| 2267 | func (ls *LState) Context() context.Context { |
no outgoing calls