We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a950f4 commit 7169277Copy full SHA for 7169277
src/main/java/io/reactivex/observables/BlockingObservable.java
@@ -27,6 +27,7 @@
27
import io.reactivex.internal.subscribers.*;
28
import io.reactivex.internal.util.*;
29
import io.reactivex.plugins.RxJavaPlugins;
30
+import io.reactivex.subscribers.AsyncObserver;
31
32
public final class BlockingObservable<T> implements Publisher<T>, Iterable<T> {
33
final Publisher<? extends T> o;
@@ -216,7 +217,7 @@ public CompletableFuture<T> toFuture() {
216
217
CompletableFuture<T> f = new CompletableFuture<>();
218
Observable<T> source = Observable.fromPublisher(o);
219
- Observer<T> s = new Observer<T>() {
220
+ AsyncObserver<T> s = new AsyncObserver<T>() {
221
@Override
222
protected void onStart() {
223
f.whenComplete((v, e) -> {
0 commit comments