Skip to content

Instantly share code, notes, and snippets.

@stefanotroia
Last active November 13, 2019 17:18
Show Gist options
  • Save stefanotroia/d7de458212779c2e85afd19c4a487cb1 to your computer and use it in GitHub Desktop.
Save stefanotroia/d7de458212779c2e85afd19c4a487cb1 to your computer and use it in GitHub Desktop.
Async Task
private ListeningExecutorService service = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(2));
service.sumbit(()-> {
log.info("Async");
//TODO LOGIC
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment