/// <summary> /// Attempts to pop and return multiple objects from the top of the concurrent stack atomically. /// </summary> public static int TryPopRange(SystemConcurrent.ConcurrentStack <T> concurrentStack, T[] items) { Helper.Interleave(); return(concurrentStack.TryPopRange(items)); }
/// <summary> /// Attempts to pop and return multiple objects from the top of the concurrent stack atomically. /// </summary> public static int TryPopRange(SystemConcurrent.ConcurrentStack <T> concurrentStack, T[] items, int startIndex, int count) { Helper.Interleave(); return(concurrentStack.TryPopRange(items, startIndex, count)); }