-
-
Save kasramp/fee809820dca2f62e8a7a9d06f186e83 to your computer and use it in GitHub Desktop.
ExecutorService calling a Callable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<?> future = executorService.submit(aCallable); | |
future.get(2, TimeUnit.seconds); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment