void Internal.ITreeHandleable.MakeReady(Internal.IValueContainer valueContainer, ref ValueLinkedQueue <Internal.ITreeHandleable> handleQueue, ref ValueLinkedQueue <Internal.ITreeHandleable> cancelQueue) { valueContainer.Retain(); _value = valueContainer; _state = valueContainer.GetState(); }
void ITreeHandleable.MakeReady(IValueContainer valueContainer, ref ValueLinkedQueue <ITreeHandleable> handleQueue, ref ValueLinkedQueue <ITreeHandleable> cancelQueue) { if (valueContainer.GetState() == State.Canceled) { valueContainer.Retain(); _valueContainer = valueContainer; cancelQueue.Push(this); } else { Dispose(); } }
void ITreeHandleable.MakeReady(IValueContainer valueContainer, ref ValueLinkedQueue <ITreeHandleable> handleQueue, ref ValueLinkedQueue <ITreeHandleable> cancelQueue) { throw new System.InvalidOperationException(); }
static partial void AddToCancelQueueBack(ref ValueLinkedQueue <Internal.ITreeHandleable> cancelations);
void ITreeHandleable.MakeReady(Promise owner, IValueContainer valueContainer, ref ValueLinkedQueue <ITreeHandleable> handleQueue) { if (valueContainer.GetState() == Promise.State.Canceled) { canceler.SetValue(valueContainer); handleQueue.Push(this); } else { Dispose(); } }
void Internal.ITreeHandleable.MakeReady(Promise owner, Internal.IValueContainer valueContainer, ref ValueLinkedQueue <Internal.ITreeHandleable> handleQueue) { throw new System.InvalidOperationException(); }
public static void AddToHandleQueueBack(ref ValueLinkedQueue <ITreeHandleable> handleables) { _handleQueue.EnqueueAndClear(ref handleables); }
public static void AddToHandleQueueFront(ref ValueLinkedQueue <ITreeHandleable> handleables) { _handleQueue.PushAndClear(ref handleables); }