public static void setNewsFuture(SettableFuture<NewsArticleVector> fut) {
   future.cancel(true);
   future = fut;
 }
Esempio n. 2
0
 @Override
 public boolean cancel(boolean mayInterruptIfRunning) {
   return settableFuture.cancel(mayInterruptIfRunning);
 }