Example #1
0
 public void set(UIWidgetsCoroutine routine)
 {
     if (this._current != routine)
     {
         this._current = routine;
     }
 }
Example #2
0
        public bool moveNext(IEnumerator enumerator, UIWidgetsCoroutine parent)
        {
            if (this._current.isDone)
            {
                var current = this._current;
                this._current = null;

                if (current.lastError != null)
                {
                    parent.stop(current.lastError);
                    return(false);
                }

                parent.lastResult = current.lastResult;
                return(enumerator.MoveNext());
            }

            return(true);
        }