public void set(UIWidgetsCoroutine routine) { if (this._current != routine) { this._current = routine; } }
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); }