353637383940414243
for (Item item : items) { deleteFutures.add(executor.submit(new DeleteFileTask(bus, item.getFile()))); } List<File> result = Futures.allAsList(deleteFutures).get(); bus.post(new DeleteFilesFinishedEvent(this)); return result; }