Closed
Description
Why an active computation thread got interrupted while window is finished?
Observable
.intervalRange(0, 2, 0, 1, TimeUnit.SECONDS)
.window(1, TimeUnit.SECONDS)
.doOnNext(i -> {
long start = System.currentTimeMillis();
while (System.currentTimeMillis() < start+1500) {
}
if (Thread.interrupted()) {
System.out.println("WTF? Thread is interrupted!");
}
})
.ignoreElements()
.blockingAwait();
Is it a bug?