@Override public Callbacks.ConstantAffection get() throws InterruptedException, ExecutionException { while (true) { try { return get(300L, TimeUnit.MILLISECONDS); } catch (TimeoutException ignored) { } if (myCanceledStatus.isCanceled()) { return myResult; } } }
public boolean isCanceled() { return myCanceledStatus.isCanceled(); }