Closed
Description
This fails:
@Test
public void directScheduleOnSingleThreadExecutor() {
Scheduler scheduler = Schedulers.from(Executors.newSingleThreadExecutor());
Disposable disposable = scheduler.scheduleDirect(() -> {
});
long start = nanoTime();
while (!disposable.isDisposed()) {
assertTrue(nanoTime() - start < SECONDS.toNanos(10));
}
}
while replacing from(...)
with io()
works
I can't find where the error exactly is, my debugger can't jump in to the right source code line.