Here you can find the source of getSilently(Future
public static <V> V getSilently(Future<V> future)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.Future; public class Main { public static <V> V getSilently(Future<V> future) { boolean interrupted = false; try {/*w w w . j a va 2s .c o m*/ while (true) { try { return future.get(); } catch (InterruptedException e) { interrupted = true; } } } catch (Throwable ignored) { return null; } finally { if (interrupted) { Thread.currentThread().interrupt(); } } } }