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