public void Dispose() { if (DisposableHelper.Terminate(ref d)) { OnDisposed(); } }
internal void Decrement() { if (Interlocked.Decrement(ref wip) == 0) { DisposableHelper.Terminate(ref d); } }
public void OnError(Exception e) { DisposableHelper.Terminate(ref timer); if (Interlocked.CompareExchange(ref once, 1, 0) == 0) { actual.OnComplete(); } }
public void OnNext(T value) { if (mode != 0) { return; } DisposableHelper.Terminate(ref other); OnComplete(); }
public void OnError(Exception e) { if (Interlocked.CompareExchange(ref once, 1, 0) != 0) { return; } DisposableHelper.Terminate(ref this.t); actual.OnError(e); }
public void OnSuccess(T t) { if (Interlocked.CompareExchange(ref once, 1, 0) != 0) { return; } DisposableHelper.Terminate(ref this.t); actual.OnSuccess(t); }
public void OnNext(U value) { if (!once) { once = true; DisposableHelper.Terminate(ref other); DoSubscribe(); } }
public void OnTimeout() { if (Interlocked.CompareExchange(ref once, 1, 0) != 0) { return; } DisposableHelper.Terminate(ref d); if (other != null) { other.Subscribe(new OtherSingleSubscriber(this)); } else { actual.OnError(new TimeoutException()); } }
public void Dispose() { DisposableHelper.Terminate(ref other); DisposableHelper.Terminate(ref main); }
public void Dispose() { SubscriptionHelper.Terminate(ref other); DisposableHelper.Terminate(ref main); }
void CancelSampler() { DisposableHelper.Terminate(ref sampler); }
public void Cancel() { sds.Cancel(); DisposableHelper.Terminate(ref timer); }
public void Cancel() { DisposableHelper.Terminate(ref resource); s.Cancel(); }
public void Cancel() { s.Cancel(); DisposableHelper.Terminate(ref other); }
public void Cancel() { DisposableHelper.Terminate(ref firstDisposable); SubscriptionHelper.Terminate(ref secondSubscription); }
public void Dispose() { DisposableHelper.Terminate(ref upstream); DisposableHelper.Terminate(ref timer); }
internal void CancelOther() { DisposableHelper.Terminate(ref d); }
public void Dispose() { DisposableHelper.Terminate(ref d); OnError(Single.NoSuchElementException()); }
void CancelTimer() { DisposableHelper.Terminate(ref timer); }
public void OnError(Exception e) { DisposableHelper.Terminate(ref resource); actual.OnError(e); }
public void Cancel() { DisposableHelper.Terminate(ref d); arbiter.Cancel(); }
void CancelOther() { DisposableHelper.Terminate(ref this.d); }
public void Dispose() { DisposableHelper.Terminate(ref d); }
public void OnComplete() { DisposableHelper.Terminate(ref resource); actual.OnComplete(); }