Exemple #1
0
 public void Add(T tuple)
 {
     if (WaitingActions.First != null && WaitingAction <T> .Take(this, tuple))
     {
         return;
     }
     _written.Add(tuple);
 }
Exemple #2
0
 private void AddRange(T[] tuples, int count)
 {
     if (count == 0)
     {
         return;
     }
     if (WaitingActions.First == null)
     {
         _written.AddRange(tuples, count);
     }
     else
     {
         _written.AddRange(tuples, count - (WaitingAction <T> .Take(this, tuples, count)));
     }
 }