boolean (Promise<?> future) { try { future.blockingGet(5, TimeUnit.MILLISECONDS); return true; } catch (TimeoutException ignored) { return false; } catch (Exception e) { throw new RuntimeException(e); } }