Subscribe on the same thread

This commit is contained in:
Andrea Cavalli 2021-09-08 21:35:04 +02:00
parent 09c7e4f730
commit e12e240487

View File

@ -149,6 +149,7 @@ class ScoredSimpleLuceneShardSearcher implements LuceneShardSearcher {
})
.single()
.takeUntilOther(cancelEvent.asMono())
.subscribeOn(Schedulers.immediate())
.block();
if (!emitter.isCancelled()) {
Objects.requireNonNull(pageTopDocs);