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