class FutureDisposable extends AtomicReference<Future<?>> implements Disposable {

    @Override
    public boolean isDisposed() {
        Future<?> f = get();
        return f == null || f.isDone();
    }

      FutureDisposable(Future<?> run, boolean allowInterrupt);

}