Java Code Examples for io.reactivex.internal.disposables.DisposableHelper#validate()
The following examples show how to use
io.reactivex.internal.disposables.DisposableHelper#validate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompletableOnAssembly.java From RxJava2Debug with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.d, d)) { this.d = d; actual.onSubscribe(this); } }
Example 2
Source File: MaybeOnAssembly.java From RxJava2Debug with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.d, d)) { this.d = d; actual.onSubscribe(this); } }
Example 3
Source File: SingleOnAssembly.java From RxJava2Debug with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.d, d)) { this.d = d; actual.onSubscribe(this); } }
Example 4
Source File: SingleFlatMapIterableFlowable.java From akarnokd-misc with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.d, d)) { this.d = d; actual.onSubscribe(this); } }
Example 5
Source File: SingleFlatMapIterableObservable.java From akarnokd-misc with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (DisposableHelper.validate(this.d, d)) { this.d = d; actual.onSubscribe(this); } }
Example 6
Source File: RequestContextSingleObserver.java From armeria with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (!DisposableHelper.validate(disposable, d)) { return; } disposable = d; try (SafeCloseable ignored = assemblyContext.push()) { actual.onSubscribe(this); } }
Example 7
Source File: RequestContextMaybeObserver.java From armeria with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (!DisposableHelper.validate(disposable, d)) { return; } disposable = d; try (SafeCloseable ignored = assemblyContext.push()) { actual.onSubscribe(this); } }
Example 8
Source File: RequestContextCompletableObserver.java From armeria with Apache License 2.0 | 5 votes |
@Override public void onSubscribe(Disposable d) { if (!DisposableHelper.validate(disposable, d)) { return; } disposable = d; try (SafeCloseable ignored = assemblyContext.push()) { actual.onSubscribe(this); } }