This commit is contained in:
Andrea Cavalli 2021-06-16 23:51:14 +02:00
parent e5f5108c91
commit 59b830b74f
1 changed files with 6 additions and 2 deletions

View File

@ -700,7 +700,9 @@ public class MonoUtils {
@Override
public void onNext(T t) {
if (handler != null) {
handler.handle(t);
}
if (!fetchMode.get()) {
readCoreSubscription.request(1);
}
@ -713,8 +715,10 @@ public class MonoUtils {
@Override
public void onComplete() {
if (readEndHandler != null) {
readEndHandler.handle(null);
}
}
});
return this;
}