4 ms·
original Futures can't be cancelled. CompleteableFuture can be, but only if the thread agrees to die. You can achieve arbitrary non-blocking delays by using th
by eggsnbacon1 6y ago
original Futures can't be cancelled. CompleteableFuture can be, but only if the thread agrees to die.
You can achieve arbitrary non-blocking delays by using the cruft scheduled thread executor or doing it sanely with RxJava. Really its just dangerous to do nonblocking stuff in Java without a wrapper like RxJava. That's not a good thing, I look forward to the day there's real fibers