Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

what is a callable in java

public void executeTask() {
    executorService = Executors.newSingleThreadExecutor();
    Future future = executorService.submit(new EventLoggingTask());
    executorService.shutdown();
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #callable #java
ADD COMMENT
Topic
Name
2+2 =