Example #1
0
 /// <summary>Creates a new <see cref="TrackedConcurrentQueue&lt;T>"/> filled from the collection passed to it.</summary>
 /// <param name="collection">An <see cref="IEnumerable&lt;T>"/> that the queue will be filled from on construction.</param>
 public TrackedConcurrentQueue(IEnumerable <T> collection)
     : this()
 {
     _count = _backing.EnqueueRange(collection);
 }
 /// <summary>Add a sequence of items.</summary>
 /// <param name="item"><see cref="IEnumerable{T}"/> of the items to add.</param>
 /// <remarks>The items are added as a single atomic operation.</remarks>
 public void Add(IEnumerable <T> item)
 {
     _backing.EnqueueRange(item);
 }