Tao.Lua SDK Documentation

Lua.lua_yield Method 

Yields a coroutine.

[Visual Basic]
Public Shared Function lua_yield( _
   ByVal L As IntPtr, _
   ByVal nresults As Integer _
) As Integer
[C#]
public static int lua_yield(
   IntPtr L,
   int nresults
);

Parameters

L
nresults

Return Value

Remarks

When a C function calls lua_yield in that way, the running coroutine suspends its execution, and the call to lua_resume that started this coroutine returns. The parameter nresults is the number of values from the stack that are passed as results to lua_resume.

See Also

Lua Class | Tao.Lua Namespace