/// <summary> /// Appends a TeaTime to wait after the current callback execution that /// is also affected by the queue .Stop() and .Reset(). /// </summary> public void Wait(TeaTime tt) { // A reference to the waiting list if (!self._waiting.Contains(tt)) { self._waiting.Add(tt); Wait(tt.WaitForCompletion()); } }
/// <summary> /// Appends a TeaTime to wait after the current callback execution that /// is also affected by .Stop() and .Reset(). /// </summary> public void Wait(TeaTime tt) { // Currently waiting if (!self._waiting.Contains(tt)) { self._waiting.Add(tt); } Wait(tt.WaitForCompletion()); }