Java tutorial
//package com.java2s; //License from project: Apache License import java.util.concurrent.Future; public class Main { public static boolean isDone(final Future<?> future) { return (future != null) && future.isDone(); } }