Exemplo n.º 1
0
            public bool IsCompleted()
            {
                if (!operation.MoveNext())
                {
                    continuation();
                    return(true);
                }

                return(false);
            }
Exemplo n.º 2
0
    public static int MoveNext(IntPtr l)
    {
        int result;

        try
        {
            CustomYieldInstruction customYieldInstruction = (CustomYieldInstruction)LuaObject.checkSelf(l);
            bool b = customYieldInstruction.MoveNext();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }