internal void RemoveTopContinuation() { if (Promises.Count > 0) { Promises.RemoveAt(0); } StateManager.Current.Tracker.MarkAsModified(this, "Promises"); }
internal void RemoveContinuation(BasePromiseInfo oldPromise) { var index = Promises.FindIndex(x => x.UniqueID.Equals(oldPromise.UniqueID, StringComparison.Ordinal)); if (index != -1) { Promises.RemoveAt(index); } StateManager.Current.Tracker.MarkAsModified(this, "Promises"); }