Re: Uninterruptibles and Futures.getUnchecked()

2019-02-28 Thread Roman Leventov
, and stumbled upon Futures.getUnchecked(). There are zero usages of Uninterruptibles and Futures.getUnchecked() in the repository so far (Uninterruptibles will first appear here: https://github.com/apache/incubator-druid/pull/7038/files#diff-95b2c7998c679f4ebc744597fc699fc5R491), I suspect, because nobody

Re: Uninterruptibles and Futures.getUnchecked()

2019-02-28 Thread Gian Merlino
Have you got sections in mind in Druid code that would be improved by using these? On Tue, Feb 26, 2019 at 3:04 PM Roman Leventov wrote: > I've recently discovered two utilities in Guava that are very useful in > combating InterruptedExceptions that contaminate business logic of code: > > -

Uninterruptibles and Futures.getUnchecked()

2019-02-26 Thread Roman Leventov
I've recently discovered two utilities in Guava that are very useful in combating InterruptedExceptions that contaminate business logic of code: - Uninterruptibles: https://google.github.io/guava/releases/21.0/api/docs/com/google/common/util/concurrent/Uninterruptibles.html. It has methods that