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