/// <summary> /// Moves items from the input queue to the output queue. /// </summary> void BroadcastProcess() { T item; while (messageQueue.TryTake(out item)) { outgoing.AddData(item); } }
/// <summary> /// Moves an item from the input queue to the output queue. /// </summary> void BroadcastProcess() { T item; if (messageQueue.TryTake(out item)) { outgoing.AddData(item); } outgoing.DequeueItem(); }