Exemplo n.º 1
0
 public void Request(long n)
 {
     if (SubscriptionHelper.Validate(n))
     {
         BackpressureHelper.ValidateAndAddCap(ref requested, n);
         Drain();
     }
 }
 public void Request(long n)
 {
     if (BackpressureHelper.ValidateAndAddCap(ref requested, n) == 0L)
     {
         if (n == long.MaxValue)
         {
             FastPath();
         }
         else
         {
             SlowPath(n);
         }
     }
 }
 public void Request(long n)
 {
     BackpressureHelper.ValidateAndAddCap(ref requested, n);
 }