public void Request(long n) { if (OnSubscribeHelper.ValidateRequest(n)) { BackpressureHelper.PostCompleteRequest(ref requested, n, queue, actual, ref cancelled); } }
public void Request(long n) { if (SubscriptionHelper.Validate(n)) { if (!BackpressureHelper.PostCompleteRequest(ref requested, n, actual, queue, ref cancelled)) { s.Request(n); } } }
public override void Request(long n) { if (SubscriptionHelper.Validate(n)) { if (!BackpressureHelper.PostCompleteRequest <IList <T> >(ref requested, n, actual, lists, ref cancelled)) { if (Volatile.Read(ref once) == 0 && Interlocked.CompareExchange(ref once, 1, 0) == 0) { long r = BackpressureHelper.MultiplyCap(n - 1, size - skip); long u = BackpressureHelper.AddCap(r, size); s.Request(u); } else { long r = BackpressureHelper.MultiplyCap(n, size - skip); s.Request(r); } } } }
public void Request(long n) { if (OnSubscribeHelper.ValidateRequest(n)) { if (BackpressureHelper.PostCompleteRequest(ref requested, n, buffers, actual, ref cancelled)) { if (Volatile.Read(ref once) == 0 && Interlocked.CompareExchange(ref once, 1, 0) == 0) { long u = BackpressureHelper.MultiplyCap(skip, n - 1); long v = BackpressureHelper.AddCap(size, u); s.Request(v); } else { long u = BackpressureHelper.MultiplyCap(skip, n); s.Request(u); } } } }
public void Request(long n) { BackpressureHelper.PostCompleteRequest(ref requested, n, q, actual, ref cancelled, v => v.value); }