MCPcopy Index your code
hub / github.com/yuin/gopher-lua / Yield

Method Yield

state.go:2217–2223  ·  view source on GitHub ↗
(values ...LValue)

Source from the content-addressed store, hash-verified

2215}
2216
2217func (ls *LState) Yield(values ...LValue) int {
2218 ls.SetTop(0)
2219 for _, lv := range values {
2220 ls.Push(lv)
2221 }
2222 return -1
2223}
2224
2225func (ls *LState) XMoveTo(other *LState, n int) {
2226 if ls == other {

Callers 1

TestCoroutineApi1Function · 0.45

Calls 2

SetTopMethod · 0.95
PushMethod · 0.95

Tested by 1

TestCoroutineApi1Function · 0.36